Skip to content

Commit

Permalink
Set up Coveralls on GitHub Actions
Browse files Browse the repository at this point in the history
Signed-off-by: Chuck Fan <[email protected]>
  • Loading branch information
fanck0605 committed Sep 2, 2021
1 parent 6b817a5 commit b0f382a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 241 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
os: [windows-latest, ubuntu-latest, macos-latest]
node-version: [12.x, 14.x, 16.x]

name: Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -27,3 +28,21 @@ jobs:
- run: npx --no-install eslint "**/*.{js,ts}"
- run: npx --no-install prettier --check "**/*.{js,ts,json,yml,md}"
- run: npx --no-install jest --ci --coverage

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: node-${{ matrix.node-version }}-on-${{ matrix.os }}
parallel: true

finish:
needs: test
name: Coveralls Finished
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"devDependencies": {
"@craco/craco": "^6.1.2",
"clone": "^2.1.2",
"coveralls": "^3.1.0",
"eslint": "^7.29.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
Expand Down
Loading

0 comments on commit b0f382a

Please sign in to comment.