Skip to content

Commit 7becb76

Browse files
committed
Checkout Code error in GitHub Checks
Refactor specs to ensure ordered stage status check and update RSpec report action version Signed-off-by: Rodrigo Nardi <[email protected]>
1 parent beed63d commit 7becb76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ruby.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
if-no-files-found: warn
105105

106106
- name: RSpec Report
107-
uses: SonicGarden/rspec-report-action@v6.0.0
107+
uses: SonicGarden/rspec-report-action@v2
108108
with:
109109
token: ${{ secrets.GITHUB_TOKEN }}
110110
title: 'Unit tests'

spec/lib/github/build/action_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
end
168168

169169
it 'must not change' do
170-
expect(check_suite_new.reload.stages.first.status).to eq('queued')
170+
expect(check_suite_new.reload.stages.order(id: :asc).first.status).to eq('queued')
171171
end
172172
end
173173

0 commit comments

Comments
 (0)