Install standalone test dependency in CI

This commit is contained in:
2026-07-27 16:16:51 -07:00
parent 69863a0b7f
commit c846fb3d66
2 changed files with 9 additions and 0 deletions

View File

@@ -18,6 +18,8 @@ jobs:
- uses: ruby/setup-ruby@003a5c4d8d6321bd302e38f6f0ec593f77f06600 # v1
with:
ruby-version: "3.4"
- name: Install standalone test dependency
run: gem install minitest --version 6.0.6 --no-document
- run: |
ruby test/repository_test.rb
ruby test/runtime_tuple_promoter_test.rb

View File

@@ -335,6 +335,13 @@ class RepositoryTest < Minitest::Test
end
end
def test_repository_job_installs_its_pinned_standalone_test_dependency
workflow = File.read(File.join(ROOT, ".github/workflows/candidate.yml"))
repository_job = workflow.split(/^ repository:\n/, 2).fetch(1).split(/^ prepare:\n/, 2).fetch(0)
assert_includes repository_job, "gem install minitest --version 6.0.6 --no-document"
end
def test_candidate_workflow_verifies_and_preserves_the_lockstep_client_tuple
workflow = File.read(File.join(ROOT, ".github/workflows/candidate.yml"))