Commit c2a6031 1 parent 20620b2 commit c2a6031 Copy full SHA for c2a6031
File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -43,14 +43,22 @@ jobs:
43
43
steps :
44
44
- name : " Checkout repo"
45
45
uses : actions/checkout@v4
46
+ with :
47
+ # checkout full tree
48
+ fetch-depth : 0
46
49
- name : " Install nightly toolchain"
47
50
uses : dtolnay/rust-toolchain@nightly
48
51
- name : " Use cache"
49
52
uses : Swatinem/rust-cache@v2
50
53
- name : " Install clippy"
51
54
run : rustup component add clippy --toolchain nightly-x86_64-unknown-linux-gnu
52
- - name : " Run code linting"
53
- run : bash contrib/lint.sh
55
+ - name : " Run code linting on all commits"
56
+ run : |
57
+ for commit in $(git rev-list ${{ github.event.before }}..${{ github.sha }}); do
58
+ git checkout $commit
59
+ echo "checked out $commit"
60
+ bash contrib/lint.sh
61
+ done
54
62
- name : " Run documentation linting"
55
63
run : RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features --document-private-items
56
64
You can’t perform that action at this time.
0 commit comments