From 144f4bdcee32b158af88ac07ff08f71bcf9036e7 Mon Sep 17 00:00:00 2001 From: Bjerg Date: Thu, 15 Jun 2023 21:58:49 +0200 Subject: [PATCH] ci: fix required checks (#3192) --- .github/workflows/bench.yml | 7 ++++++- .github/workflows/ci.yml | 6 +++++- .github/workflows/fuzz.yml | 8 +++++++- .github/workflows/integration.yml | 6 +++++- .github/workflows/unit.yml | 6 +++++- 5 files changed, 28 insertions(+), 5 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 5393f27f05..2a1ad02ea9 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -67,9 +67,14 @@ jobs: - name: Check if benchmarks build run: cargo bench --all --all-features --all-targets --no-run + bench-success: + if: always() name: bench success needs: bench-check runs-on: ubuntu-latest steps: - - run: echo Success! + - name: Decide whether the needed jobs succeeded or failed + uses: re-actors/alls-green@release/v1 + with: + jobs: ${{ toJSON(needs) }} \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89e16db168..4dc36d318c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,8 +53,12 @@ jobs: run: RUSTDOCFLAGS="-D warnings" cargo doc --all --no-deps --all-features --document-private-items lint-success: + if: always() name: lint success runs-on: ubuntu-latest needs: [lint, doc-lint] steps: - - run: echo Success! + - name: Decide whether the needed jobs succeeded or failed + uses: re-actors/alls-green@release/v1 + with: + jobs: ${{ toJSON(needs) }} \ No newline at end of file diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index b69d7b92b3..9dbc7568ca 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -63,8 +63,14 @@ jobs: flags: fuzz-tests fuzz-success: + if: always() name: fuzz success runs-on: ubuntu-latest needs: all steps: - - run: echo Success! + # Note: This check is a dummy because we currently have fuzz tests disabled. + - run: echo OK. + #- name: Decide whether the needed jobs succeeded or failed + # uses: re-actors/alls-green@release/v1 + # with: + # jobs: ${{ toJSON(needs) }} \ No newline at end of file diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 11a1919239..992c447462 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -91,8 +91,12 @@ jobs: --debug.terminate integration-success: + if: always() name: integration success runs-on: ubuntu-latest needs: [test, sync] steps: - - run: echo Success! + - name: Decide whether the needed jobs succeeded or failed + uses: re-actors/alls-green@release/v1 + with: + jobs: ${{ toJSON(needs) }} \ No newline at end of file diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 46bd573ed5..2e495074ac 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -95,8 +95,12 @@ jobs: run: cargo test --doc --all --all-features unit-success: + if: always() name: unit success runs-on: ubuntu-latest needs: [test, eth-blockchain, doc-test] steps: - - run: echo Success! + - name: Decide whether the needed jobs succeeded or failed + uses: re-actors/alls-green@release/v1 + with: + jobs: ${{ toJSON(needs) }} \ No newline at end of file