From 73dc96930eb7c3dc8e563078a93c02057fdaf55d Mon Sep 17 00:00:00 2001 From: wilhelmagren Date: Sat, 11 Nov 2023 16:16:49 +0100 Subject: [PATCH] fix(ci): use working-directory setting for tasks --- .github/workflows/ci.yml | 14 ++++++++++---- .github/workflows/tests.yml | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9af9adf..da4be38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,10 @@ jobs: toolchain: ${{ matrix.rust }} override: true - name: Cargo check - run: make check-rust + uses: actions-rs/cargo@v1 + with: + command: check + working-directory: ./alloy.rs format: name: Cargo format @@ -45,7 +48,11 @@ jobs: override: true - run: rustup component add rustfmt - name: Cargo format - run: make format-rust + uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check + working-directory: ./alloy.rs clippy: name: Clippy lint @@ -64,11 +71,10 @@ jobs: profile: minimal toolchain: ${{ matrix.rust }} override: true - - name: Change directory - run: cd ./alloy.rs/ - name: Clippy lint uses: giraffate/clippy-action@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: 'github-pr-review' clippy_flags: --all-features + working-directory: ./alloy.rs diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9751735..4aff541 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,8 +28,8 @@ jobs: uses: taiki-e/install-action@cargo-llvm-cov - name: Run tests run: | - cd ./alloy.rs/ cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info + working-directory: ./alloy.rs - name: Upload coverage report uses: codecov/codecov-action@v3 with: