mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
- 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
34 lines
824 B
YAML
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
|