Skip to content

Commit

Permalink
chore: move ci to use an all-systems-go job, like tokio does (#291)
Browse files Browse the repository at this point in the history
This eases the maintenance burden of adding/removing CI jobs.
  • Loading branch information
Noah-Kennedy authored Jul 12, 2022
1 parent b312075 commit 1c23fc7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/on-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ on:
branches: [ "master" ]

jobs:
# Depends on all actions that are required for a "successful" CI run.
# Based on the ci here: https://github.com/tokio-rs/tokio/blob/master/.github/workflows/ci.yml
all-systems-go:
runs-on: ubuntu-latest
needs:
- check_features
- clippy
- rustfmt
- tests
- integration-tests
steps:
- run: exit 0

check_features:
strategy:
matrix:
Expand All @@ -19,6 +32,7 @@ jobs:
toolchain: stable
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack check --each-feature

clippy:
strategy:
matrix:
Expand All @@ -31,6 +45,7 @@ jobs:
toolchain: stable
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack clippy --each-feature

rustfmt:
strategy:
matrix:
Expand All @@ -42,6 +57,7 @@ jobs:
with:
toolchain: stable
- run: cargo fmt --all --check

tests:
strategy:
matrix:
Expand All @@ -54,6 +70,7 @@ jobs:
toolchain: stable
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack test --each-feature

integration-tests:
strategy:
matrix:
Expand Down

0 comments on commit 1c23fc7

Please sign in to comment.