Repository navigation
ci: validate common scripts - #774
Closed
leopoldjoy wants to merge 1 commit into
Closed
leopoldjoy wants to merge 1 commit into
leopoldjoy wants to merge 1 commit into
Conversation
Collaborator
🟡 Heimdall Review Status
|
Comment on lines
+20
to
+66
| name: active/evm script/common | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Harden the runner (Audit all outbound calls) | ||
| uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0 | ||
| with: | ||
| egress-policy: audit | ||
|
|
||
| - name: Checkout repository | ||
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | ||
|
|
||
| # ── Toolchain (mise) ───────────────────────────────────────────── | ||
| # Installs all tools pinned in mise.toml (foundry, node, bun, go) so | ||
| # CI runs match local signer environments byte-for-byte. | ||
| - name: Install mise-managed toolchain | ||
| uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1 | ||
| with: | ||
| experimental: true | ||
|
|
||
| # ── Dependencies ───────────────────────────────────────────────── | ||
| # Install Foundry deps into the shared active/evm project. PROJECT_DIR | ||
| # points forge install at active/evm; BASE_CONTRACTS_COMMIT is supplied | ||
| # via env since the shared project has no task .env of its own. | ||
| - name: Install dependencies | ||
| run: make deps PROJECT_DIR="$PWD/active/evm" | ||
|
|
||
| # ── Validation ─────────────────────────────────────────────────── | ||
| - name: Check Solidity formatting | ||
| working-directory: active/evm | ||
| run: | | ||
| echo "==> forge fmt --check script/" | ||
| if ! forge fmt --check script/; then | ||
| echo "" | ||
| echo "::error::Formatting check failed. Run 'forge fmt script/' in active/evm to fix." | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Build (forge build) | ||
| working-directory: active/evm | ||
| run: | | ||
| echo "==> forge build" | ||
| if ! forge build; then | ||
| echo "" | ||
| echo "::error::Compilation failed. Check imports, types, and dependency versions." | ||
| exit 1 | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
active/evm/script/commonscriptsTesting
mise exec -- go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.7 .github/workflows/validate-common-script.ymlgit diff --checkactive/evmis not present on currentmain