Skip to content

Commit

Permalink
use codecov action
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdeyen committed Jan 17, 2025
1 parent 2ffd17e commit 82c283d
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
SOLIDUS_BRANCH: ${{ matrix.solidus }}
DB: ${{ matrix.database }}
RAILS_ENV: test
TEST_RESULTS_PATH: test-results/results.xml
TEST_RESULTS_PATH: coverage/coverage.xml
services:
postgres:
image: postgres:14
Expand Down Expand Up @@ -80,8 +80,16 @@ jobs:
echo "DATABASE_URL=postgres://dummy:dummy@127.0.0.1:5432/dummy_test?pool=5" >> $GITHUB_ENV
- name: Run tests for Solidus ${{ matrix.solidus }} on ${{ matrix.database }} with Ruby ${{ matrix.ruby-version }}
run: bundle exec rake
- name: Store test results
uses: actions/upload-artifact@v4
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
name: test-results-${{ github.ref_name }}-${{ matrix.solidus }}-${{ matrix.database }}-${{ matrix.ruby-version }}
path: test-results
token: ${{ secrets.CODECOV_TOKEN }}
slug: solidusio-contrib/solidus_reviews
file: ./coverage/coverage.xml
- uses: actions/upload-artifact@v4
if: failure()
with:
name: Screenshots
path: |
tmp/capybara
tmp/screenshots

0 comments on commit 82c283d

Please sign in to comment.