Skip to content

Commit

Permalink
test: fix test report and add codecov dashboard (#23)
Browse files Browse the repository at this point in the history
* Fix test report and add codecov dashboard
* Separate reporters
  • Loading branch information
puria authored Sep 19, 2023
1 parent 0470734 commit d977e93
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 44 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/docs.yml

This file was deleted.

11 changes: 4 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,10 @@ jobs:
- name: Run the tests
run: pnpm coverage

- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: 🧪 Unit tests
path: .coverage/junit.xml
reporter: jest-junit
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Build all
run: pnpm build-all
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint": "eslint --ext .ts pkg/*/src pkg/*/test",
"format": "prettier --ignore-path .gitignore --write '**/*.+(js|ts|json|html)'",
"test": "pnpm build && pnpm -F @slangroom/* exec ava build/esm/test",
"coverage": "c8 -o .coverage --exclude '**/test/' pnpm test",
"coverage": "c8 -r text -r lcov -o .coverage --exclude '**/test/' pnpm test",
"clean": "rm -rf .coverage && pnpm -F @slangroom/* exec -- rm -rf build",
"build": "pnpm build:esm",
"build:dual": "pnpm build:esm && pnpm build:cjs",
Expand Down

0 comments on commit d977e93

Please sign in to comment.