Update CI workflow #167
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
- releases/* | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
cancel: | |
name: Cancel previous jobs | |
if: github.ref != 'refs/heads/master' | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
steps: | |
- name: Cancel previous jobs | |
uses: styfle/cancel-workflow-action@0.11.0 | |
with: | |
workflow_id: 4197767 | |
access_token: ${{ github.token }} | |
test: | |
name: Node.js ${{ matrix.node_version }} on ${{ matrix.os }} | |
if: always() | |
needs: | |
- cancel | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
node_version: [8, 10, 12, 14, 16, 18] | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
steps: | |
- name: Setup repository | |
uses: actions/checkout@v3 | |
- name: Setup environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node_version }} | |
- name: Install dependencies | |
run: npm install | |
- name: Compile sources | |
run: npm run compile | |
- name: Run Hygiene Checks | |
run: npm run lint | |
- name: Run unit tests | |
run: npm run test | |
- name: Run smoke tests (sync) | |
run: npm run smoke:sync | |
- name: Run smoke tests (async) | |
run: npm run smoke:async | |
- name: Run smoke tests (stream) | |
run: npm run smoke:stream |