Skip to content

Fix v2 CI: pin Foundry and skip Coveralls outside the main repo - #185

Merged
ryanio merged 1 commit into
v2from
ryan/v2/fix-ci
Oct 23, 2026
Merged

ryanio merged 1 commit into
v2from
ryan/v2/fix-ci

Conversation

@ryanio

@ryanio ryanio commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

Two fixes to .github/workflows/test.yml on v2.

Run Forge Tests failed at forge install because CI installed the Foundry nightly (forge 1.8.7-nightly). That build checks out the branch set in .gitmodules for each submodule, and lib/create2-helpers sets branch = v0.1.3, which is a tag. In a shallow Actions checkout the tag isn't present, so it fails with fatal: invalid reference: v0.1.3. This PR pins foundry-rs/foundry-toolchain to v1.5.1. With 1.5.1, forge install on a depth-1 submodule checkout exits 0 and leaves every submodule at its recorded commit. .gitmodules and the forge install step are unchanged.

The Coveralls steps in Run Hardhat Coverage and Finish Coverage Results now run only when github.repository == 'ProjectOpenSea/seadrop'. Forks and mirrors without a Coveralls project skip the upload instead of failing the job.

Test plan

  • Run Forge Tests passes with forge v1.5.1
  • Run Hardhat Coverage and Finish Coverage Results pass and still upload to Coveralls in this repo
  • Run Hardhat Tests and Run Linters pass

🤖 Generated with Claude Code

Forge nightly now checks out the .gitmodules branch for each submodule
during `forge install`, which fails on the v0.1.3 tag for
lib/create2-helpers. Pin the toolchain to v1.5.1, which keeps submodules
at their recorded commits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 40019790333

Coverage remained the same at 83.243%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 1103
Covered Lines: 920
Line Coverage: 83.41%
Relevant Branches: 550
Covered Branches: 456
Branch Coverage: 82.91%
Branches in Coverage %: Yes
Coverage Strength: 190.16 hits per line

💛 - Coveralls

@ryanio
ryanio merged commit ae8d69e into v2 Oct 23, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants