72
72
73
73
runs-on : ${{ matrix.os }}
74
74
75
+ # NOTE: If you modify this job, make sure you copy the changes to clippy.yml
75
76
steps :
76
77
# Setup
77
78
- uses : rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
@@ -112,8 +113,16 @@ jobs:
112
113
- name : Build
113
114
run : cargo build --features deny-warnings,internal-lints
114
115
115
- - name : Test Workspace
116
- run : cargo test --all --features deny-warnings,internal-lints
116
+ - name : Test
117
+ run : cargo test --features deny-warnings,internal-lints
118
+
119
+ - name : Test clippy_lints
120
+ run : cargo test --features deny-warnings,internal-lints
121
+ working-directory : clippy_lints
122
+
123
+ - name : Test rustc_tools_util
124
+ run : cargo test --features deny-warnings
125
+ working-directory : rustc_tools_util
117
126
118
127
- name : Test clippy_dev
119
128
run : cargo test --features deny-warnings
@@ -123,11 +132,22 @@ jobs:
123
132
run : ../target/debug/cargo-clippy
124
133
working-directory : clippy_workspace_tests
125
134
135
+ - name : Test cargo-clippy --fix
136
+ run : ../target/debug/cargo-clippy clippy --fix -Zunstable-options
137
+ working-directory : clippy_workspace_tests
138
+
126
139
- name : Test clippy-driver
127
140
run : bash .github/driver.sh
128
141
env :
129
142
OS : ${{ runner.os }}
130
143
144
+ - name : Test cargo dev new lint
145
+ run : |
146
+ cargo dev new_lint --name new_early_pass --pass early
147
+ cargo dev new_lint --name new_late_pass --pass late
148
+ cargo check
149
+ git reset --hard HEAD
150
+
131
151
integration_build :
132
152
needs : changelog
133
153
runs-on : ubuntu-latest
0 commit comments