From 33b8e89b75490b1e8680998a7ddce0f4f0443f4b Mon Sep 17 00:00:00 2001 From: Stefano Verna Date: Tue, 2 Apr 2024 15:08:28 +0200 Subject: [PATCH] Add CI --- .github/workflows/node.js.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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..2b3b0df --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,21 @@ +name: Node.js CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x, 18.x, 20.x] + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + - run: npm ci + - run: npm test