2024-05-04 16:06:23 +02:00
|
|
|
name: Test and coverage
|
2024-05-04 11:27:59 +02:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
2024-05-04 16:07:05 +02:00
|
|
|
- '*'
|
2024-05-03 19:55:28 +02:00
|
|
|
jobs:
|
2024-05-04 11:27:59 +02:00
|
|
|
coverage:
|
2024-05-03 19:55:28 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-05-04 11:27:59 +02:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: ArtiomTr/jest-coverage-report-action@v2
|
2024-05-04 12:25:14 +02:00
|
|
|
with:
|
|
|
|
working-directory: Express/barAndCafe
|
2024-05-04 12:59:53 +02:00
|
|
|
test-script: npm run test
|
|
|
|
output: comment, report-markdown
|
2024-05-04 16:09:50 +02:00
|
|
|
prnumber: ${{ steps.findPr.outputs.number }}
|
2024-05-04 16:15:20 +02:00
|
|
|
custom-title: Coverage report for backend
|
2024-05-04 16:21:00 +02:00
|
|
|
github-token: ${{ secrets.PR_TOCKEN}}
|
|
|
|
annotations: none #disable annotation
|