diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 191d71be..2d965a76 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -50,9 +50,6 @@ jobs: - name: Setup | Checkout uses: actions/checkout@v3 - - name: Setup | Cache - uses: Swatinem/rust-cache@v2 - - name: Setup | Rust uses: actions-rs/toolchain@v1.0.7 with: @@ -61,6 +58,9 @@ jobs: profile: minimal components: clippy + - name: Setup | Cache + uses: Swatinem/rust-cache@v2 + - name: Build | Lint uses: actions-rs/cargo@v1.0.3 with: @@ -75,9 +75,6 @@ jobs: - name: Setup | Checkout uses: actions/checkout@v3 - - name: Setup | Cache - uses: Swatinem/rust-cache@v2 - - name: Setup | Rust uses: actions-rs/toolchain@v1.0.7 with: @@ -85,6 +82,9 @@ jobs: profile: minimal override: true + - name: Setup | Cache + uses: Swatinem/rust-cache@v2 + - name: Build | Check run: cargo check --workspace --locked @@ -97,9 +97,6 @@ jobs: - name: Setup | Checkout uses: actions/checkout@v3 - - name: Setup | Cache - uses: Swatinem/rust-cache@v2 - - name: Setup | Rust uses: actions-rs/toolchain@v1.0.7 with: @@ -107,6 +104,9 @@ jobs: profile: minimal override: true + - name: Setup | Cache + uses: Swatinem/rust-cache@v2 + - name: Build | Check run: cargo check --workspace --locked --no-default-features @@ -119,9 +119,6 @@ jobs: - name: Setup | Checkout uses: actions/checkout@v3 - - name: Setup | Cache - uses: Swatinem/rust-cache@v2 - - name: Setup | Rust uses: actions-rs/toolchain@v1.0.7 with: @@ -129,6 +126,9 @@ jobs: profile: minimal override: true + - name: Setup | Cache + uses: Swatinem/rust-cache@v2 + - name: Build | Check run: cargo check --workspace --locked --all-features @@ -141,9 +141,6 @@ jobs: - name: Setup | Checkout uses: actions/checkout@v3 - - name: Setup | Cache - uses: Swatinem/rust-cache@v2 - - name: Setup | Rust uses: actions-rs/toolchain@v1.0.7 with: @@ -151,6 +148,9 @@ jobs: profile: minimal override: true + - name: Setup | Cache + uses: Swatinem/rust-cache@v2 + - name: Run | Generate Schema run: cargo run --locked --features config-schema -- config-schema > .github/config-schema.json @@ -177,9 +177,6 @@ jobs: - name: Setup | Checkout uses: actions/checkout@v3 - - name: Setup | Cache - uses: Swatinem/rust-cache@v2 - # Install all the required dependencies for testing - name: Setup | Rust uses: actions-rs/toolchain@v1.0.7 @@ -189,6 +186,9 @@ jobs: profile: minimal override: true + - name: Setup | Cache + uses: Swatinem/rust-cache@v2 + - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov