From 34d5e949baf2644c61059c903584631c2419c901 Mon Sep 17 00:00:00 2001 From: antondlr Date: Wed, 15 May 2024 11:11:04 +0300 Subject: [PATCH] don't run `test-suite` on `skip-ci` label --- .github/workflows/test-suite.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index 74aab44ac08..c3815e203b0 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -38,6 +38,7 @@ jobs: run: test ${{ github.base_ref }} != "stable" release-tests-ubuntu: name: release-tests-ubuntu + if: !${{ github.event.label.name == 'skip-ci' }} # Use self-hosted runners only on the sigp repo. runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-latest' }} steps: @@ -63,6 +64,7 @@ jobs: run: sccache --show-stats release-tests-windows: name: release-tests-windows + if: !${{ github.event.label.name == 'skip-ci' }} runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "windows", "CI"]') || 'windows-2019' }} steps: - uses: actions/checkout@v4 @@ -97,6 +99,7 @@ jobs: run: sccache --show-stats beacon-chain-tests: name: beacon-chain-tests + if: !${{ github.event.label.name == 'skip-ci' }} # Use self-hosted runners only on the sigp repo. runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-latest' }} env: @@ -117,6 +120,7 @@ jobs: run: sccache --show-stats op-pool-tests: name: op-pool-tests + if: !${{ github.event.label.name == 'skip-ci' }} runs-on: ubuntu-latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -132,6 +136,7 @@ jobs: run: make test-op-pool network-tests: name: network-tests + if: !${{ github.event.label.name == 'skip-ci' }} runs-on: ubuntu-latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -147,6 +152,7 @@ jobs: run: make test-network slasher-tests: name: slasher-tests + if: !${{ github.event.label.name == 'skip-ci' }} runs-on: ubuntu-latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -162,6 +168,7 @@ jobs: run: make test-slasher debug-tests-ubuntu: name: debug-tests-ubuntu + if: !${{ github.event.label.name == 'skip-ci' }} # Use self-hosted runners only on the sigp repo. runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-latest' }} env: @@ -186,6 +193,7 @@ jobs: run: sccache --show-stats state-transition-vectors-ubuntu: name: state-transition-vectors-ubuntu + if: !${{ github.event.label.name == 'skip-ci' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -198,6 +206,7 @@ jobs: run: make run-state-transition-tests ef-tests-ubuntu: name: ef-tests-ubuntu + if: !${{ github.event.label.name == 'skip-ci' }} # Use self-hosted runners only on the sigp repo. runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "CI", "small"]') || 'ubuntu-latest' }} env: @@ -218,6 +227,7 @@ jobs: run: sccache --show-stats dockerfile-ubuntu: name: dockerfile-ubuntu + if: !${{ github.event.label.name == 'skip-ci' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -227,6 +237,7 @@ jobs: run: docker run -t lighthouse:local lighthouse --version basic-simulator-ubuntu: name: basic-simulator-ubuntu + if: !${{ github.event.label.name == 'skip-ci' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -239,6 +250,7 @@ jobs: run: cargo run --release --bin simulator basic-sim fallback-simulator-ubuntu: name: fallback-simulator-ubuntu + if: !${{ github.event.label.name == 'skip-ci' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -251,6 +263,7 @@ jobs: run: cargo run --release --bin simulator fallback-sim doppelganger-protection-test: name: doppelganger-protection-test + if: !${{ github.event.label.name == 'skip-ci' }} runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "CI", "small"]') || 'ubuntu-latest' }} env: # Enable portable to prevent issues with caching `blst` for the wrong CPU type @@ -285,6 +298,7 @@ jobs: ./doppelganger_protection.sh success genesis.json execution-engine-integration-ubuntu: name: execution-engine-integration-ubuntu + if: !${{ github.event.label.name == 'skip-ci' }} runs-on: ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "CI", "small"]') || 'ubuntu-latest' }} steps: - uses: actions/checkout@v4 @@ -344,6 +358,7 @@ jobs: run: cargo check --workspace cargo-udeps: name: cargo-udeps + if: !${{ github.event.label.name == 'skip-ci' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -366,6 +381,7 @@ jobs: RUSTFLAGS: "" compile-with-beta-compiler: name: compile-with-beta-compiler + if: !${{ github.event.label.name == 'skip-ci' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -377,6 +393,7 @@ jobs: run: make cli-check: name: cli-check + if: !${{ github.event.label.name == 'skip-ci' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -391,6 +408,7 @@ jobs: # a PR is safe to merge. New jobs should be added here. test-suite-success: name: test-suite-success + if: !${{ github.event.label.name == 'skip-ci' }} runs-on: ubuntu-latest needs: [ 'target-branch-check',