@@ -3,9 +3,10 @@ name: CI
33
44on :
55 push :
6- branches : [main]
6+ branches : [ main ]
77 pull_request :
88
9+
910concurrency :
1011 group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
1112 cancel-in-progress : ${{ github.ref_name != 'main' }}
@@ -22,36 +23,40 @@ jobs:
2223 name : Code Quality
2324 runs-on : ubuntu-latest
2425 steps :
25- - name : Checkout code
26- uses : actions/checkout@v4
26+ - name : Checkout code
27+ uses : actions/checkout@v4
28+ with :
29+ persist-credentials : false
2730
28- - name : Install Rust toolchain
29- uses : moonrepo/setup-rust@v1
30- with :
31- components : clippy,rustfmt
32- env :
33- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31+ - name : Install Rust toolchain
32+ uses : moonrepo/setup-rust@v1
33+ with :
34+ components : clippy,rustfmt
35+ env :
36+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3437
35- - name : Check formatting
36- run : cargo fmt --all --check
38+ - name : Check formatting
39+ run : cargo fmt --all --check
3740
38- - name : Run Clippy
39- run : cargo clippy --all-targets --all-features
41+ - name : Run Clippy
42+ run : cargo clippy --all-targets --all-features
4043
4144 test :
4245 name : Test
4346 runs-on : ubuntu-latest
4447 steps :
45- - name : Checkout code
46- uses : actions/checkout@v4
48+ - name : Checkout code
49+ uses : actions/checkout@v4
50+ with :
51+ persist-credentials : false
4752
48- - name : Install Rust toolchain
49- uses : moonrepo/setup-rust@v1
50- env :
51- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
53+ - name : Install Rust toolchain
54+ uses : moonrepo/setup-rust@v1
55+ env :
56+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5257
53- - name : Check
54- run : cargo check --all-targets --all-features
58+ - name : Check
59+ run : cargo check --all-targets --all-features
5560
56- - name : Run tests
57- run : cargo test
61+ - name : Run tests
62+ run : cargo test
0 commit comments