Skip to content

Commit

Permalink
add coveralls to public dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
macfarlandian committed Oct 14, 2020
1 parent f290aa5 commit dff5921
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/coveralls-complete.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Coveralls Complete"

# after sending multiple reports to Coveralls in parallel,
# we now have to let Coveralls know our run is complete.
on:
workflow_run:
workflows: ["CI: Spotlight Client", "CI: Public Dashboard Client"]
types:
- completed
- requested

jobs:
finish-coveralls:
runs-on: ubuntu-latest
steps:
- name: Coveralls Parallel Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
9 changes: 8 additions & 1 deletion .github/workflows/public-dashboard-client-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,11 @@ jobs:
node-version: "12.x"
- uses: c-hive/gha-yarn-cache@v1
- run: yarn install --frozen-lockfile
- run: yarn test
- run: yarn test --coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
flag-name: public-dashboard-client
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
path-to-lcov: public-dashboard-client/coverage/lcov.info
2 changes: 2 additions & 0 deletions .github/workflows/spotlight-client-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,7 @@ jobs:
- name: Coveralls
uses: coverallsapp/github-action@master
with:
flag-name: spotlight-client
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
path-to-lcov: spotlight-client/coverage/lcov.info
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"dev:pdclient": "yarn workspace public-dashboard-client run dev"
},
"devDependencies": {
"coveralls": "^3.1.0",
"eslint-config-airbnb": "^18.2.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.4",
Expand Down
1 change: 0 additions & 1 deletion spotlight-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"@types/node": "^12.0.0",
"@typescript-eslint/eslint-plugin": "^4.4.0",
"@typescript-eslint/parser": "^4.4.0",
"coveralls": "^3.1.0",
"eslint-import-resolver-typescript": "^2.3.0"
},
"browserslist": {
Expand Down

0 comments on commit dff5921

Please sign in to comment.