Skip to content

Commit

Permalink
ci: Move clippy build and test into 1 job
Browse files Browse the repository at this point in the history
  • Loading branch information
aidan46 committed May 13, 2024
1 parent c89ff2b commit d355a78
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
echo '.rs files are not formatted correctly'
echo 'Please run cargo fmt --all'
clippy:
clippy_build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -66,21 +66,6 @@ jobs:
run: |
echo 'cargo clippy failed'
echo 'Please fix the issue generated by clippy'
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install protobuf compiler
run: |
sudo apt-get update
sudo apt-get install protobuf-compiler
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.77.0
target: wasm32-unknown-unknown
- name: List version
run: cargo --version
- name: Build with try-runtime feature
run: RUSTFLAGS="-D warnings" cargo build --features try-runtime
- name: try-runtime build failure
Expand All @@ -105,21 +90,6 @@ jobs:
if: failure()
run: |
echo 'cargo build --release failed'
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install protobuf compiler
run: |
sudo apt-get update
sudo apt-get install protobuf-compiler
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.77.0
target: wasm32-unknown-unknown
- name: List version
run: cargo --version
- name: Run tests
run: RUSTFLAGS="-D warnings" cargo test --workspace
- name: Cargo test fail
Expand Down

0 comments on commit d355a78

Please sign in to comment.