Skip to content

Commit

Permalink
use github actions, really
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasq committed Jul 10, 2024
1 parent ddfd5fc commit 360bc79
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: build
on:
push:
# branches: [ $default-branch, ar-test ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# 0.10 and 0.8 might need a newer qmock
node: [ 0.11.x, 6, 8, 12, 16, 5.8.0 ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm install

- name: npm test
run: test `node -v` '!=' 'v5.8.0' && npm test || true

- name: install nyc
if: ${{ matrix.node == '5.8.0' }}
run: npm install -g [email protected]

- name: test coverage
if: ${{ matrix.node == '5.8.0' }}
run: npm run coverage

- name: upload coverage
if: ${{ matrix.node == '5.8.0' }}
uses: coverallsapp/[email protected]
with:
github-token: ${{ github.token }}

0 comments on commit 360bc79

Please sign in to comment.