Skip to content

Commit

Permalink
Add test coverage report and update lint-staged configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
msudgh committed Feb 24, 2024
1 parent 249e0ad commit 95ab0bf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,16 @@ jobs:
directory: ./coverage
files: ./coverage/cobertura-coverage.xml,./coverage/lcov.info
fail_ci_if_error: true
- name: Upload test-coverage as artifact
uses: actions/upload-artifact@v2
with:
name: test-coverage
path: ./coverage
- name: Commit and push coverage report
if: ${{ github.event_name != 'pull_request' }}
run: |
git config --global user.email "github-actions"
git config --global user.name "GitHub Actions"
git add ./coverage
git commit -m "Add coverage report"
git push
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@
"zod": "3.22.4"
},
"lint-staged": {
"*.ts": [
"npm run test"
],
"*.{ts,js}": [
"npm run lint",
"npm run format"
Expand Down

0 comments on commit 95ab0bf

Please sign in to comment.