Skip to content

Commit

Permalink
fix(ci): use working-directory setting for tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
wilhelmagren committed Nov 11, 2023
1 parent ae5dfc5 commit 73dc969
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 73dc969

Please sign in to comment.