Skip to content

Commit

Permalink
chore: Refactor ci job step name
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed May 3, 2023
1 parent d5d4ba6 commit db7fc7c
Showing 1 changed file with 13 additions and 23 deletions.
36 changes: 13 additions & 23 deletions .github/workflows/continuous-integration-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,18 @@ jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: install toolchain
uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: rustfmt
run: cargo fmt --all --check
- run: cargo fmt --all --check

machete:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: install toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-machete
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: install cargo-machete
uses: baptiste0928/cargo-install@v2
with:
crate: cargo-machete
Expand All @@ -44,18 +39,16 @@ jobs:
- macos-latest
- windows-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: install toolchain
- uses: actions/checkout@v3
- name: install toolchain (${{ matrix.toolchain }})
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- name: install protoc
uses: taiki-e/install-action@v2
with:
tool: protoc@${{ env.PROTOC_VERSION }}
- name: install ninja
uses: seanmiddleditch/gha-setup-ninja@v3
- uses: seanmiddleditch/gha-setup-ninja@v3
- uses: Swatinem/rust-cache@v2
- name: test
run: cargo test --workspace --all-targets
Expand All @@ -64,14 +57,13 @@ jobs:
# Run doc tests separately: https://github.com/rust-lang/cargo/issues/6669
- name: test doc
run: cargo test --workspace --doc
- name: test doc
- name: test doc --no-default-features
run: cargo test -p prost-build -p prost-derive -p prost-types --doc --no-default-features

kani:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Verify with Kani
uses: model-checking/kani-github-action@0.27
with:
Expand All @@ -90,10 +82,8 @@ jobs:
no-std:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: install toolchain
uses: dtolnay/rust-toolchain@nightly
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- name: install protoc
uses: taiki-e/install-action@v2
with:
Expand Down

0 comments on commit db7fc7c

Please sign in to comment.