-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
70 additions
and
32 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,29 @@ | ||
name: Linting | ||
env: {} | ||
|
||
on: [push] | ||
# FILE GENERATED WITH: npx ghat voxpelli/ghatemplates/lint | ||
# SOURCE: https://github.com/voxpelli/ghatemplates | ||
# OPTIONS: {"set":["jobs.test.strategy.matrix.node_version=[12]"]} | ||
|
||
name: Linting | ||
on: | ||
- push | ||
- pull_request | ||
jobs: | ||
lint: | ||
name: Static code analysis | ||
runs-on: ubuntu-latest | ||
test: | ||
name: Node ${{ matrix.node_version }} on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node_version: | ||
- 12 | ||
os: | ||
- ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
- name: Use Node.js ${{ matrix.node_version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '12' | ||
- run: npm install | ||
- run: npx run-p check:* | ||
node-version: ${{ matrix.node_version }} | ||
- run: yarn install | ||
- run: yarn run check |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,46 @@ | ||
name: Node CI | ||
env: {} | ||
|
||
on: [push] | ||
# FILE GENERATED WITH: npx ghat voxpelli/ghatemplates/nodejs-coveralls | ||
# SOURCE: https://github.com/voxpelli/ghatemplates | ||
# OPTIONS: {"set":["jobs.test.strategy.matrix.node_version=[10,12,14,15]","jobs.test.strategy.matrix.os=[ubuntu-latest]"]} | ||
|
||
name: Node CI | ||
on: | ||
- push | ||
- pull_request | ||
jobs: | ||
test: | ||
name: Node ${{ matrix.node_version }} on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
node_version: [10, 12, 13] | ||
os: [ubuntu-latest] | ||
|
||
node_version: | ||
- 10 | ||
- 12 | ||
- 14 | ||
- 15 | ||
os: | ||
- ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node_version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
- run: yarn install | ||
- run: yarn run test-ci | ||
- name: Coveralls Parallel | ||
uses: coverallsapp/[email protected] | ||
with: | ||
github-token: ${{ secrets.github_token }} | ||
flag-name: run-${{ matrix.os }}-${{ matrix.node_version }} | ||
parallel: true | ||
coverage: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node_version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
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 | ||
- name: Coveralls Finished | ||
uses: coverallsapp/[email protected] | ||
with: | ||
github-token: ${{ secrets.github_token }} | ||
parallel-finished: true |
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
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