From bdb380e17d1ad42c1d5dcbb5435cd6897855e88e Mon Sep 17 00:00:00 2001 From: Uladzislau Rastargueu Date: Thu, 2 Feb 2023 23:48:52 +0100 Subject: [PATCH] feature: add GitHub actions for testing --- .github/workflows/tests.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..fd7a079 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,25 @@ +name: Testing + +on: + push: + branches: '**' + pull_request: + branches: '**' + +jobs: + test: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [6.x, 8.x, 10.x] + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci | npm install + - run: npm test