From 09e66336237cd248fe32c11ea25cb06194ce0201 Mon Sep 17 00:00:00 2001 From: Pablo Castellano Date: Thu, 20 Jun 2024 13:49:31 +0200 Subject: [PATCH] ci: merge lint and build-test steps --- .github/workflows/ci.yml | 13 ++++--------- .github/workflows/deploy-staging.yml | 13 ++++--------- .github/workflows/release.yml | 12 ++++-------- 3 files changed, 12 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e5b33f..2e1470d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,8 +8,8 @@ env: CARGO_TERM_COLOR: always jobs: - lint: - name: Linter + build-test: + name: Run tests runs-on: ubuntu-latest steps: @@ -20,6 +20,7 @@ jobs: uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy + - run: rustup override set ${{steps.toolchain.outputs.name}} - name: cargo fmt @@ -33,14 +34,8 @@ jobs: with: args: --all --all-features - build-test: - name: Run tests - runs-on: ubuntu-latest - needs: lint - - steps: - - uses: actions/checkout@v3 - name: Build run: cargo build --verbose + - name: Run tests run: cargo test --verbose diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index c9ddd3a..edc2c1a 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -8,8 +8,8 @@ env: CARGO_TERM_COLOR: always jobs: - lint: - name: Linter + build-test: + name: Run tests runs-on: ubuntu-latest steps: @@ -20,6 +20,7 @@ jobs: uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy + - run: rustup override set ${{steps.toolchain.outputs.name}} - name: cargo fmt @@ -33,15 +34,9 @@ jobs: with: args: --all --all-features - build-test: - name: Run tests - runs-on: ubuntu-latest - needs: lint - - steps: - - uses: actions/checkout@v3 - name: Build run: cargo build --verbose + - name: Run tests run: cargo test --verbose diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7710354..43aa29b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,8 @@ env: jobs: - lint: + build-test: + name: Run tests runs-on: ubuntu-latest steps: @@ -21,6 +22,7 @@ jobs: uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy + - run: rustup override set ${{steps.toolchain.outputs.name}} - name: cargo fmt @@ -34,15 +36,9 @@ jobs: with: args: --all --all-features - build-test: - name: Run tests - runs-on: ubuntu-latest - needs: lint - - steps: - - uses: actions/checkout@v3 - name: Build run: cargo build --verbose + - name: Run tests run: cargo test --verbose