fix(emergency-exit): security hardening — replay, proof verification, activation, alias #353
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
| name: Go E2E tests | |
| on: | |
| pull_request: | |
| jobs: | |
| go-test: | |
| runs-on: ubuntu-latest | |
| name: Go test ${{matrix.name}} | |
| container: | |
| image: tokamaknetwork/thanos-ci-builder:latest | |
| strategy: | |
| matrix: | |
| include: | |
| - name: 'op-batcher-tests' | |
| module: 'op-batcher' | |
| - name: 'op-bindings-tests' | |
| module: 'op-bindings' | |
| - name: 'op-node-tests' | |
| module: 'op-node' | |
| - name: 'op-proposer-tests' | |
| module: 'op-proposer' | |
| - name: 'op-dispute-mon-tests' | |
| module: 'op-challenger' | |
| - name: 'op-conductor-tests' | |
| module: 'op-conductor' | |
| - name: 'op-program-tests' | |
| module: 'op-program' | |
| - name: 'op-service-tests' | |
| module: 'op-service' | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.24.3' | |
| - name: Prep results dir | |
| run: mkdir -p /tmp/test-results | |
| - name: Run tests | |
| run: | | |
| gotestsum --format=standard-verbose --junitfile=/tmp/test-results/${{ matrix.module }}.xml \ | |
| -- -parallel=8 -coverprofile=coverage.out ./... | |
| working-directory: ${{ matrix.module }} | |
| - name: Store test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results-${{ matrix.module }} | |
| path: /tmp/test-results | |
| cannon-go-lint-and-test: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: tokamaknetwork/thanos-ci-builder:latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Add repository to git safe directories | |
| run: git config --global --add safe.directory $GITHUB_WORKSPACE | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.24.3' | |
| - name: Install Gotestsum | |
| run: go install gotest.tools/gotestsum@v1.11.0 | |
| - name: Check if changes affect relevant paths | |
| id: changes-check | |
| uses: dorny/paths-filter@v3 | |
| with: | |
| filters: | | |
| cannon: | |
| - 'cannon/**' | |
| contracts-bedrock: | |
| - 'packages/tokamak/contracts-bedrock/src/cannon/**' | |
| op-preimage: | |
| - 'op-preimage/**' | |
| - name: Prep Cannon results dir | |
| run: mkdir -p /tmp/test-results | |
| - name: Make Allocs | |
| run: make devnet-allocs | |
| - name: Build Cannon example binaries | |
| run: make elf | |
| working-directory: cannon/example | |
| if: steps.changes-check.outputs.cannon == 'true' || steps.changes-check.outputs.contracts-bedrock == 'true' || steps.changes-check.outputs.op-preimage == 'true' | |
| - name: Cannon Go lint | |
| run: make lint | |
| working-directory: cannon | |
| if: steps.changes-check.outputs.cannon == 'true' || steps.changes-check.outputs.contracts-bedrock == 'true' || steps.changes-check.outputs.op-preimage == 'true' | |
| - name: Cannon Go tests | |
| run: | | |
| gotestsum --format=standard-verbose --junitfile=/tmp/test-results/cannon.xml \ | |
| -- -parallel=2 -coverpkg=github.com/tokamak-network/thanos/cannon/... -coverprofile=coverage.out ./... | |
| working-directory: cannon | |
| if: steps.changes-check.outputs.cannon == 'true' || steps.changes-check.outputs.contracts-bedrock == 'true' || steps.changes-check.outputs.op-preimage == 'true' | |
| - name: Upload Cannon coverage | |
| run: codecov --verbose --clean --flags cannon-go-tests | |
| if: steps.changes-check.outputs.cannon == 'true' || steps.changes-check.outputs.contracts-bedrock == 'true' || steps.changes-check.outputs.op-preimage == 'true' | |
| - name: Store test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results-lint | |
| path: /tmp/test-results |