From 60f00aaa6dcd83e6196a7b7bf8fa621ce3df1b49 Mon Sep 17 00:00:00 2001 From: ehmicky Date: Mon, 16 Nov 2020 16:04:25 +0100 Subject: [PATCH] Add CI tests --- .github/workflows/workflow.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/workflow.yml diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 0000000..c6f0767 --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,31 @@ +name: Tests +on: + # Ensure GitHub actions are not run twice for same commits + push: + branches: [master] + tags: ["*"] + pull_request: + types: [opened, synchronize, reopened] +jobs: + build: + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + strategy: + matrix: + os: [ubuntu-latest, macOS-latest] + node-version: [12.x, 14.x] + exclude: + - os: macOS-latest + node-version: 12.x + fail-fast: false + steps: + - name: Git checkout + uses: actions/checkout@v2 + - name: Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: npm ci + - name: Tests + run: npm test