File tree Expand file tree Collapse file tree 1 file changed +0
-48
lines changed Expand file tree Collapse file tree 1 file changed +0
-48
lines changed Original file line number Diff line number Diff line change 3838 run : cargo test --workspace --all-features
3939 - name : No-default features
4040 run : cargo test --workspace --no-default-features
41- rustfmt :
42- name : rustfmt
43- strategy :
44- matrix :
45- rust :
46- - stable
47- - beta
48- continue-on-error : ${{ matrix.rust != 'stable' }}
49- runs-on : ubuntu-latest
50- steps :
51- - name : Checkout repository
52- uses : actions/checkout@v3
53- - name : Install Rust
54- uses : dtolnay/rust-toolchain@stable
55- with :
56- toolchain : ${{ matrix.rust }}
57- components : rustfmt
58- - uses : Swatinem/rust-cache@v2
59- - name : Check formatting
60- run : cargo fmt --all -- --check
61- clippy :
62- name : clippy
63- runs-on : ubuntu-latest
64- permissions :
65- security-events : write # to upload sarif results
66- steps :
67- - name : Checkout repository
68- uses : actions/checkout@v3
69- - name : Install Rust
70- uses : dtolnay/rust-toolchain@stable
71- with :
72- toolchain : stable
73- components : clippy
74- - uses : Swatinem/rust-cache@v2
75- - name : Install SARIF tools
76- run : cargo install clippy-sarif sarif-fmt
77- - name : Check
78- run : >
79- cargo clippy --workspace --all-features --all-targets --message-format=json -- -D warnings --allow deprecated
80- | clippy-sarif
81- | tee clippy-results.sarif
82- | sarif-fmt
83- continue-on-error : true
84- - name : Upload
85- uses : github/codeql-action/upload-sarif@v2
86- with :
87- sarif_file : clippy-results.sarif
88- wait-for-processing : true
You can’t perform that action at this time.
0 commit comments