Skip to content

ci: enforce base-std/ and base-std-test/ import prefixes#144

Open
eric-ships wants to merge 1 commit into
mainfrom
ericliu/import-path-lint
Open

ci: enforce base-std/ and base-std-test/ import prefixes#144
eric-ships wants to merge 1 commit into
mainfrom
ericliu/import-path-lint

Conversation

@eric-ships
Copy link
Copy Markdown
Collaborator

Motivation

Now that #143 normalized all internal imports to use the public base-std/ and base-std-test/ remapping prefixes, this adds a CI gate to keep them that way.

Adds an Import Paths job that greps all .sol files in src/ and test/ for raw "src/ or "test/ imports and fails if any are found. The job requires no Foundry install — it is a pure grep — so it is fast and has no toolchain dependency.

The current codebase passes cleanly.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 5, 2026

Interface Coverage

✅ All interface functions have test coverage.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 5, 2026

📊 Forge Coverage (src/lib/)

🟢 ≥99% across all metrics.

File Lines Stmts Branches Funcs
🟢 B20FactoryLib.sol 100.00% 100.00% 100.00% 100.00%
🟢 MockActivationRegistry.sol 100.00% 100.00% 100.00% 100.00%
🟢 MockActivationRegistryStorage.sol 100.00% 100.00% 100.00% 100.00%
🟢 MockB20.sol 100.00% 100.00% 100.00% 100.00%
🟢 MockB20Asset.sol 100.00% 100.00% 100.00% 100.00%
🟡 MockB20Factory.sol 98.95% 99.08% 100.00% 100.00%
🟢 MockB20Stablecoin.sol 100.00% 100.00% 100.00% 100.00%
🟢 MockB20Storage.sol 100.00% 100.00% 100.00% 100.00%
🟢 MockPolicyRegistry.sol 100.00% 100.00% 100.00% 100.00%
🟢 MockPolicyRegistryStorage.sol 100.00% 100.00% 100.00% 100.00%
Total 99.86% 99.88% 100.00% 100.00%

Full report: download artifact. To browse locally: make coverage (runs forge coverage + genhtml + opens the HTML report).

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 5, 2026

✅ Fork tests: all 602 passed

base/base is fully in sync with the base-std spec.

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.

1 participant