Skip to content

Commit

Permalink
Merge pull request #80 from fanck0605/coveralls
Browse files Browse the repository at this point in the history
Set up Coveralls on GitHub Actions
  • Loading branch information
tux-tn authored Sep 3, 2021
2 parents 6b817a5 + 68885a6 commit a4c93b1
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 242 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
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ coverage
lib/*.test.js
yarn.lock
craco-less-*.tgz
.github/pull_request_template.md
.github/
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 a4c93b1

Please sign in to comment.