From 53909e045674695b6a5de5f83e6e6583e897db1f Mon Sep 17 00:00:00 2001 From: Felipe Plets Date: Mon, 27 Mar 2023 01:06:44 -0700 Subject: [PATCH] feat: add github action ci workflow (#85) --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..59ddabd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: "Continuous Integration" +on: + push: + branches: + - master + pull_request: + types: [opened, synchronize, reopened] +jobs: + continuous-integration: + name: continuous-integration + runs-on: ubuntu-latest + timeout-minutes: 10 + strategy: + matrix: + mocha-version: [3, 4, 5, 6, 7, 8, 9, 10] + node-version: [14, 16, 18, 19] + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Nodejs + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version}} + - name: install dependencies + run: | + npm ci + npm i mocha@${{ matrix.mocha-version}} + - name: test + run: | + npm test