From a3ce00eb3eb269e8e9f1e20706c12f93878f5aaa Mon Sep 17 00:00:00 2001 From: Sonny Piers Date: Thu, 18 Aug 2022 15:29:07 +0200 Subject: [PATCH] chore: Enable CI Inspired by https://github.com/actions/setup-node/blob/094c36e88e2a3ffdf4d3a5bb935088ac39a46acc/README.md#matrix-testing --- .github/workflows/CI.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..cfb0892 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,23 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node: [ 14, 16, 18 ] + name: Node.js ${{ matrix.node }} + steps: + - uses: actions/checkout@v3 + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node }} + - run: npm ci + - run: npm test