Skip to content

Commit

Permalink
Run test and lint when Cargo.toml or Cargo.lock changed too (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyu08 authored Jan 1, 2024
1 parent 1392501 commit 6761c5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
pull_request:
paths:
- 'src/**.rs'
- Cargo.toml
- Cargo.lock

env:
CARGO_TERM_COLOR: always
Expand All @@ -19,4 +21,4 @@ jobs:
- name: Lint
run: |
cargo fmt
cargo clippy -- -D warnings
cargo clippy -- -D warnings
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
pull_request:
paths:
- 'src/**.rs'
- Cargo.toml
- Cargo.lock
env:
CARGO_TERM_COLOR: always

Expand Down

0 comments on commit 6761c5f

Please sign in to comment.