Skip to content

Commit

Permalink
Add test report step to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Sep 4, 2024
1 parent 838f235 commit 8e2dcb2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile') }}
Expand All @@ -23,7 +23,13 @@ jobs:
- name: Run tests
run: bundle exec rake
- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: test-results
path: test-results
- name: Publish unit tests report
uses: mikepenz/action-junit-report@v4
if: always() # always run even if the previous step fails
with:
check_name: "Test Report"
report_paths: test-results/rspec/rspec.xml

0 comments on commit 8e2dcb2

Please sign in to comment.