CI triggered from @sveitser of #1048
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: Smoke Test CI | |
| run-name: CI triggered from @${{ github.actor }} of ${{ github.head_ref }} | |
| on: | |
| workflow_dispatch: | |
| merge_group: | |
| push: | |
| schedule: | |
| # Run at the end of every day | |
| - cron: "0 0 * * *" | |
| # Cancel in-progress jobs except for integration branch | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ !contains(github.ref, 'integration/')}} | |
| jobs: | |
| smoke_test: | |
| strategy: | |
| matrix: | |
| test-script: [ | |
| ./smoke-test.bash, | |
| ./smoke-test-l3.bash, | |
| ./smoke-test-nitro-simple.bash, | |
| ./smoke-test-full-node.bash, | |
| ./smoke-test-caff-node.bash, | |
| ./smoke-test-altlayer.bash, | |
| ./smoke-test-caldera.bash, | |
| ] | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: cargo-bins/cargo-binstall@main | |
| - name: Make more disk space available on public runner | |
| run: | | |
| cargo binstall -y --force --version 2.2.0 rmz | |
| echo "Available storage before:" | |
| sudo df -h | |
| echo | |
| sudo mv ~/.cargo/bin/rmz /usr/local/bin/rmz | |
| sudo rmz -f $AGENT_TOOLSDIRECTORY | |
| sudo rmz -f /opt/az | |
| sudo rmz -f /opt/ghc | |
| sudo rmz -f /opt/google | |
| sudo rmz -f /opt/microsoft | |
| sudo rmz -f /opt/pipx | |
| sudo rmz -f /usr/lib/mono | |
| sudo rmz -f /usr/local/julia* | |
| sudo rmz -f /usr/local/lib/android | |
| sudo rmz -f /usr/local/share/boost | |
| sudo rmz -f /usr/local/share/chromium | |
| sudo rmz -f /usr/local/share/powershell | |
| sudo rmz -f /usr/share/az_* | |
| sudo rmz -f /usr/share/dotnet | |
| sudo rmz -f /usr/share/gradle-* | |
| sudo rmz -f /usr/share/swift | |
| echo "Available storage after:" | |
| sudo df -h | |
| echo | |
| shell: bash | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| # Install wscat for finality node smoke test to listen to sequencer feed | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "16" | |
| - name: Install wscat | |
| run: npm install -g wscat | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: nightly | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| with: | |
| driver-opts: network=host | |
| # Explicitly building the docker images because it's not clear how we can | |
| # use the github action (gha) cache if we let docker compose build the images. | |
| - uses: docker/build-push-action@v5 | |
| with: | |
| context: ./rollupcreator | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| # Use default branch from test-node.bash | |
| build-args: | | |
| NITRO_CONTRACTS_BRANCH=develop | |
| - uses: docker/build-push-action@v5 | |
| with: | |
| context: ./scripts | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - uses: docker/build-push-action@v5 | |
| with: | |
| context: ./tokenbridge | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| # Use default branch from test-node.bash | |
| build-args: | | |
| TOKEN_BRIDGE_BRANCH=v1.2.2 | |
| - name: Smoke Test with Latest Espresso Image | |
| run: | | |
| ${{ matrix.test-script }} | |
| timeout-minutes: 30 | |
| - name: Dump docker logs on failure | |
| if: failure() | |
| run: | | |
| docker compose logs |