Skip to content

Commit

Permalink
Ensure dependant tasks fail properly via https://github.com/orgs/comm…
Browse files Browse the repository at this point in the history
…unity/discussions/26822

Signed-off-by: Heinz N. Gies <[email protected]>
  • Loading branch information
Licenser committed Jun 18, 2024
1 parent 453cc07 commit 559b763
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 26 deletions.
48 changes: 28 additions & 20 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check bans licenses sources
command: check bans licenses sources
license:
runs-on: ubuntu-latest
steps:
Expand All @@ -32,24 +32,24 @@ jobs:
strategy:
matrix:
crate: [
".", # tremor-runtime
"tremor-api",
"tremor-cli",
"tremor-codec",
"tremor-common",
"tremor-influx",
"tremor-interceptor",
"tremor-pipeline",
"tremor-script",
"tremor-value",
"tremor-system",
"tremor-connectors",
"tremor-connectors-aws",
"tremor-connectors-azure",
"tremor-connectors-gcp",
"tremor-connectors-otel",
"tremor-connectors-object-storage",
"tremor-connectors-test-helpers",
".", # tremor-runtime
"tremor-api",
"tremor-cli",
"tremor-codec",
"tremor-common",
"tremor-influx",
"tremor-interceptor",
"tremor-pipeline",
"tremor-script",
"tremor-value",
"tremor-system",
"tremor-connectors",
"tremor-connectors-aws",
"tremor-connectors-azure",
"tremor-connectors-gcp",
"tremor-connectors-otel",
"tremor-connectors-object-storage",
"tremor-connectors-test-helpers",
]
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -93,8 +93,16 @@ jobs:
run: cargo clippy --all

code-quality:
if: ${{ always() }}
name: Code Quality
runs-on: ubuntu-latest
needs: [format, clippy-check, unused-deps, safety, license, audit]
steps:
- run: echo "All tests passed"
- run: exit 1
# see https://stackoverflow.com/a/67532120/4907315
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
|| contains(needs.*.result, 'skipped')
}}
10 changes: 9 additions & 1 deletion .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,16 @@ jobs:
verbose: true
integration-tests:
if: ${{ always() }}
name: Integration Tests
runs-on: ubuntu-latest
needs: cli-test-harness
steps:
- run: echo "All tests passed"
- run: exit 1
# see https://stackoverflow.com/a/67532120/4907315
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
|| contains(needs.*.result, 'skipped')
}}
33 changes: 28 additions & 5 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
"tremor-system",
"tremor-runtime",
"tremor-connectors-object-storage",
"tremor-connectors-test-helpers"
"tremor-connectors-test-helpers",
]
runs-on: ubuntu-latest-16-cores
steps:
Expand Down Expand Up @@ -112,22 +112,45 @@ jobs:
verbose: true
core-tests:
if: ${{ always() }}
name: Core Tests
runs-on: ubuntu-latest
needs: [tests-linux]
steps:
- run: echo "All tests passed"
- run: exit 1
# see https://stackoverflow.com/a/67532120/4907315
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
}}
connector-tests:
if: ${{ always() }}
name: Connector Tests
runs-on: ubuntu-latest
needs: [connectors-linux]
steps:
- run: echo "All tests passed"

- run: exit 1
# see https://stackoverflow.com/a/67532120/4907315
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
|| contains(needs.*.result, 'skipped')
}}
tests:
if: ${{ always() }}
name: Tests
runs-on: ubuntu-latest
needs: [connector-tests, core-tests]
steps:
- run: echo "All tests passed"
- run: exit 1
# see https://stackoverflow.com/a/67532120/4907315
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
|| contains(needs.*.result, 'skipped')
}}

0 comments on commit 559b763

Please sign in to comment.