Skip to content

Commit

Permalink
Update GitHub CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli committed Jan 26, 2020
1 parent 1803d61 commit 5857381
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 10 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Linting

on: [push]

jobs:
lint:
name: Static code analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12'
- run: npm install
- run: npx run-p check:*
26 changes: 16 additions & 10 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,28 @@ on: [push]

jobs:
test:
name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }}
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: [10, 12]
node_version: [10, 12, 13]
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
version: ${{ matrix.node_version }}

- name: npm install, build and test
run: |
npm install
npm run build --if-present
npm test
node-version: ${{ matrix.node_version }}
- run: npm install
- run: npx run-s test:*
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel: true
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true

0 comments on commit 5857381

Please sign in to comment.