From 8169cdafdfc5a116facfb908b9e45dabefaf1fd3 Mon Sep 17 00:00:00 2001 From: Piers Powlesland Date: Wed, 23 Oct 2024 17:19:10 +0100 Subject: [PATCH] Trigger e2e test runs on alfajores differently Adds a new workflow that triggers e2e test runs on alfajores once a day, and also in PRs whenever the e2e tests are updated. --- .github/workflows/ci.yaml | 4 -- .../workflows/e2e-test-deployed-network.yaml | 44 +++++++++++++++++++ 2 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/e2e-test-deployed-network.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9bedc01c55..a322857132 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -45,10 +45,6 @@ jobs: shell: bash run: e2e_test/run_all_tests.sh - - name: Run e2e tests alfajores - shell: bash - run: NETWORK=alfajores e2e_test/run_all_tests.sh - Lint: runs-on: ["8-cpu","self-hosted","org"] steps: diff --git a/.github/workflows/e2e-test-deployed-network.yaml b/.github/workflows/e2e-test-deployed-network.yaml new file mode 100644 index 0000000000..694658258a --- /dev/null +++ b/.github/workflows/e2e-test-deployed-network.yaml @@ -0,0 +1,44 @@ +name: e2e-test-deployed-network + +on: + schedule: + - cron: "0 14 * * *" + +on: + pull_request: + branches: + - master + - celo* + paths: + - 'e2e_test/**' + + workflow_dispatch: + +permissions: + contents: read + +jobs: + e2e-tests: + runs-on: ["8-cpu","self-hosted","org"] + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version: '1.21' + + - name: Build + run: make all + + - uses: actions/setup-node@v4 + with: + node-version: 18 + + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + with: + version: nightly-f625d0fa7c51e65b4bf1e8f7931cd1c6e2e285e9 + + - name: Run e2e tests alfajores + shell: bash + run: NETWORK=alfajores e2e_test/run_all_tests.sh