|
63 | 63 | with: |
64 | 64 | command: check ${{ matrix.checks }} |
65 | 65 |
|
66 | | - run_rustfmt: |
67 | | - name: Run Rustfmt |
68 | | - runs-on: ubuntu-latest |
69 | | - steps: |
70 | | - - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 |
71 | | - with: |
72 | | - submodules: recursive |
73 | | - - uses: dtolnay/rust-toolchain@0e66bd3e6b38ec0ad5312288c83e47c143e6b09e # v1 |
74 | | - with: |
75 | | - toolchain: ${{ env.RUST_VERSION }} |
76 | | - components: rustfmt |
77 | | - - run: cargo fmt --all -- --check |
78 | | - |
79 | | - run_clippy: |
80 | | - name: Run Clippy |
81 | | - runs-on: ubuntu-latest |
82 | | - steps: |
83 | | - - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 |
84 | | - with: |
85 | | - submodules: recursive |
86 | | - |
87 | | - - uses: dtolnay/rust-toolchain@0e66bd3e6b38ec0ad5312288c83e47c143e6b09e # v1 |
88 | | - with: |
89 | | - toolchain: ${{ env.RUST_VERSION }} |
90 | | - components: clippy |
91 | | - |
92 | | - - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 |
93 | | - with: |
94 | | - go-version: ${{ env.GO_VERSION }} |
95 | | - |
96 | | - - uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3 |
97 | | - with: |
98 | | - key: clippy |
99 | | - |
100 | | - - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 |
101 | | - with: |
102 | | - node-version: 18 |
103 | | - cache: yarn |
104 | | - |
105 | | - - run: yarn install --frozen-lockfile |
106 | | - - name: Run clippy action to produce annotations |
107 | | - env: |
108 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
109 | | - uses: giraffate/clippy-action@94e9bd8deab2618756ec5380f12eb35bcb0a88ca |
110 | | - if: env.GITHUB_TOKEN != null |
111 | | - with: |
112 | | - clippy_flags: --all-targets -- -D warnings |
113 | | - github_token: ${{ secrets.GITHUB_TOKEN }} |
114 | | - reporter: "github-pr-check" |
115 | | - |
116 | | - - name: Run clippy manually without annotations |
117 | | - env: |
118 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
119 | | - if: env.GITHUB_TOKEN == null |
120 | | - run: cargo clippy --all-targets -- -D warnings |
121 | | - |
122 | 66 | run_rustdoc: |
123 | 67 | name: Run RustDoc |
124 | 68 | runs-on: ubuntu-latest |
@@ -179,8 +123,6 @@ jobs: |
179 | 123 | needs: |
180 | 124 | - run_udeps |
181 | 125 | - run_cargodeny |
182 | | - - run_clippy |
183 | | - - run_rustfmt |
184 | 126 | - run_rustdoc |
185 | 127 | - run_tests |
186 | 128 | runs-on: ubuntu-latest |
|
0 commit comments