node-serialport-bindings-cpp/.github/workflows/test.yml
Francis Gulotta 0461285f04
feat: combine lint and test workflows and clean them up (#2261)
- lint job is now part of the test workflow
- test merge and test jobs are now easier to understand and no longer work around fixed bugs
- test merge now runs on a pr event which should be a merge commit
- everything should be faster
2021-06-08 23:16:01 -04:00

34 lines
824 B
YAML

name: Test / Lint
on:
push:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- run: npm ci
- run: npm run lint
test:
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x]
config:
# arch isn't used and we have no way to use it currently
- { os: macos-latest, arch: x64 }
- { os: ubuntu-latest, arch: x64 }
- { os: windows-latest, arch: x64 }
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run rebuild
- run: npm test
- run: npm run coverage
env:
CI: true