From 67bef279d2a9c7053def7c5e9896070c8da44072 Mon Sep 17 00:00:00 2001 From: Neil Brayfield Date: Wed, 18 Aug 2021 10:13:10 +0100 Subject: [PATCH] Add initial tests yml --- .github/workflows/test.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..b956aa0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,21 @@ +name: run-tests +on: [push] + +jobs: + build: + strategy: + matrix: + os: [macos-latest, ubuntu-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Install Node.js + uses: actions/setup-node@v1 + with: + node-version: 10.x + - run: npm install + - run: xvfb-run -a npm test + if: runner.os == 'Linux' + - run: npm test + if: runner.os != 'Linux'