Skip to content

Commit

Permalink
feat(tests): add code coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
guidojw committed Oct 13, 2023
1 parent 1270347 commit f465b1c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,20 @@ jobs:
env:
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
run: |
mkdir coverage
docker run -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_HOST=localhost -e \
RAILS_MASTER_KEY --network=host app bin/ci.sh spec
RAILS_MASTER_KEY --network=host -v "$(pwd)"'/coverage:/opt/app/coverage' app bin/ci.sh spec
- name: Upload coverage report to Codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
with:
token: ${{ secrets.CODECOV_TOKEN }}

Check failure on line 130 in .github/workflows/continuous-integration.yml

View workflow job for this annotation

GitHub Actions / Lint

property "codecov_token" is not defined in object type {actions_runner_debug: string; actions_step_debug: string; github_token: string; rails_master_key: string}
fail_ci_if_error: true

- name: Upload coverage report artifact
if: ${{ !cancelled() }}
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: coverage
path: coverage/

0 comments on commit f465b1c

Please sign in to comment.