Skip to content

Commit

Permalink
ci: separate coverage reporting
Browse files Browse the repository at this point in the history
# Conflicts:
#	package.json
  • Loading branch information
tpluscode committed Jul 25, 2023
1 parent 18349c4 commit bc45380
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,23 @@ jobs:
node:
- '18'
- '16'
package:
- barnard59
- barnard59-core
- barnard59-rdf
- barnard59-sparql
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm test
- run: npx c8 --reporter lcovonly wsrun --no-prefix -p ${{ matrix.package }} -c test
- name: Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: ${{ matrix.package }}

lint:
runs-on: ubuntu-20.04
Expand Down
8 changes: 8 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
flag_management:
default_rules:
carryforward: true
individual_flags:
- name: barnard59
- name: barnard59-core
- name: barnard59-rdf
- name: barnard59-sparql
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"scripts": {
"lint": "eslint . --quiet --ignore-path .gitignore",
"test": "c8 --reporter lcovonly wsrun -sm test",
"test": "wsrun -sm test",
"release": "changeset publish"
},
"workspaces": [
Expand Down

0 comments on commit bc45380

Please sign in to comment.