Update Nethermind Arbitrum image to the latest 0.2.1 release (#961) #1143
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
| # Code format verification workflow | |
| name: Format Check | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| format: | |
| name: Format Check | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| project: | |
| - src/Nethermind.Arbitrum/Nethermind.Arbitrum.csproj | |
| - src/Nethermind.Arbitrum.Test/Nethermind.Arbitrum.Test.csproj | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Check code format | |
| run: dotnet format ${{ matrix.project }} --verify-no-changes | |
| # Notify on failure for automated submodule update PRs | |
| notify-submodule-failure: | |
| name: Notify Submodule Update Failure | |
| needs: format | |
| if: needs.format.result == 'failure' && startsWith(github.head_ref, 'auto/nethermind-update') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Post failure comment on PR | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| RUN_ID: ${{ github.run_id }} | |
| REPO: ${{ github.repository }} | |
| SERVER_URL: ${{ github.server_url }} | |
| run: | | |
| if [ -z "$PR_NUMBER" ]; then | |
| echo "No PR number found, skipping notification" | |
| exit 0 | |
| fi | |
| gh pr comment "$PR_NUMBER" \ | |
| --repo "$REPO" \ | |
| --body "## ⚠️ Format Check Failure Detected | |
| The Nethermind submodule update introduced a format check failure. | |
| **Failed Job:** format | |
| **Workflow Run:** $SERVER_URL/$REPO/actions/runs/$RUN_ID | |
| Please review the failure and either: | |
| 1. Fix compatibility in a follow-up commit | |
| 2. Close this PR and wait for upstream fix | |
| 3. Pin to a specific working commit" | |
| gh pr edit "$PR_NUMBER" \ | |
| --repo "$REPO" \ | |
| --add-label "breaking-change" |