From 1ed220c28e3c8b60306c32eecd7430aa4077cb14 Mon Sep 17 00:00:00 2001 From: Michael Williams Date: Mon, 27 Nov 2023 01:45:24 +1300 Subject: [PATCH] add CI --- .github/workflows/node.js.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..e2177d5 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,24 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + timeout-minutes: 10 + + strategy: + matrix: + node-version: [18.x, 20.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm test