Skip to content

Commit 1f96dfe

Browse files
committed
ci: use junit annotation action
1 parent 88ca170 commit 1f96dfe

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.github/workflows/checks.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ jobs:
3232
with:
3333
ruby-version: ${{ matrix.ruby }}
3434
bundler-cache: true
35-
- run: bundle exec rspec
35+
- run: bundle exec rspec --format RspecJunitFormatter --out junit.xml
36+
- name: Publish Test Report
37+
uses: mikepenz/action-junit-report@v3
38+
if: success() || failure()
39+
with:
40+
report_paths: 'junit.xml'
3641
lint:
3742
runs-on: ubuntu-latest
3843
steps:

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ gem "rubocop", "~> 1.21"
1313
gem "rubocop-performance"
1414
gem "rubocop-rspec"
1515
gem "simplecov", require: false
16+
gem "rspec_junit_formatter", require: false

Gemfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ GEM
5252
diff-lcs (>= 1.2.0, < 2.0)
5353
rspec-support (~> 3.11.0)
5454
rspec-support (3.11.0)
55+
rspec_junit_formatter (0.6.0)
56+
rspec-core (>= 2, < 4, != 2.12.0)
5557
rubocop (1.56.0)
5658
base64 (~> 0.1.1)
5759
json (~> 2.3)
@@ -96,6 +98,7 @@ DEPENDENCIES
9698
aws_ec2_environment!
9799
rake (~> 13.0)
98100
rspec (~> 3.0)
101+
rspec_junit_formatter
99102
rubocop (~> 1.21)
100103
rubocop-performance
101104
rubocop-rspec

0 commit comments

Comments
 (0)