From d355a787b2d22164c5137f748d82f43525b518da Mon Sep 17 00:00:00 2001 From: aidan Date: Mon, 13 May 2024 15:48:02 +0200 Subject: [PATCH] ci: Move clippy build and test into 1 job --- .github/workflows/ci.yaml | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6261b6594..4b3edead3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 @@ -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 @@ -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