From a26aae958ee0e18d2360282ebfddb122f9e8ddad Mon Sep 17 00:00:00 2001 From: John Hildenbiddle Date: Wed, 22 Jul 2020 13:53:37 -0400 Subject: [PATCH] Add new Build & Test workflow --- .github/workflows/test.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 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 00000000..9d2b4e03 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +name: Build & Test + +on: + push: + branches: + - master + - develop + pull_request: + branches: + - master + - develop + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [10.x, 12.x, 14.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: bootstrap + run: npm run bootstrap + - name: unit tests (mocha+chai+jsdom) + run: npm run test + - name: unit tests (jest+playwright) + run: npm run test:jest-unit -- -ci + - uses: microsoft/playwright-github-action@v1.3.0 + - name: e2e tests (jest+playwright) + run: npm run test:jest-e2e -- -ci