Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DPL-1034: Combine code coverage from both Javascript and Ruby code #1520

Merged
merged 12 commits into from
Feb 16, 2024
17 changes: 12 additions & 5 deletions .github/workflows/js_test.yml → .github/workflows/test_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ on:
- push
- pull_request

env:
TZ: Europe/London

jobs:
test:
name: Test
js_test:
runs-on: ubuntu-latest
env:
TZ: Europe/London

steps:
- uses: actions/checkout@v4
- name: Setup node
Expand All @@ -23,3 +22,11 @@ jobs:
run: yarn install
- name: Run yarn test
run: yarn test
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: javascript,${{ github.event_name }}
fail_ci_if_error: true
disable_search: true
files: ${{ github.workspace }}/app/javascript/coverage/lcov.info
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,17 @@ jobs:
# example if you need more control over bundler.
- name: Additional setup
run: bin/setup
- name: Test & publish code coverage
- name: Run rspec
run: bundle exec rspec
- name: Publish code coverage to Code Climate
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID || '1735fdb62543d410c5ed4469e402641a7986f1ebf62ff7398f3ab8ccc98069ef' }}
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
coverageCommand: bundle exec rspec
token: ${{ secrets.CODECOV_TOKEN }}
flags: ruby,${{ github.event_name }}
fail_ci_if_error: true
disable_search: true
files: ${{ github.workspace }}/lcov.info
Loading