27
27
typescript : ${{ steps.filter.outputs.typescript }}
28
28
proc_macros : ${{ steps.filter.outputs.proc_macros }}
29
29
steps :
30
- - uses : actions/checkout@v3
30
+ - uses : actions/checkout@v4
31
31
- uses : dorny/paths-filter@1441771bbfdd59dcd748680ee64ebd8faab1a242
32
32
id : filter
33
33
with :
56
56
57
57
steps :
58
58
- name : Checkout repository
59
- uses : actions/checkout@v3
59
+ uses : actions/checkout@v4
60
60
with :
61
61
ref : ${{ github.event.pull_request.head.sha }}
62
62
65
65
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
66
66
rustup component add --toolchain ${{ env.RUST_CHANNEL }} rustfmt rust-src
67
67
rustup default ${{ env.RUST_CHANNEL }}
68
+ # https://github.com/actions-rust-lang/setup-rust-toolchain/blob/main/rust.json
69
+ - name : Install Rust Problem Matcher
70
+ if : matrix.os == 'ubuntu-latest'
71
+ run : echo "::add-matcher::.github/rust.json"
68
72
69
73
- name : Cache Dependencies
70
74
uses : Swatinem/rust-cache@988c164c3d0e93c4dbab36aaf5bbeb77425b2894
@@ -107,6 +111,10 @@ jobs:
107
111
if : matrix.os == 'windows-latest'
108
112
run : cargo clippy --all-targets -- -D clippy::disallowed_macros -D clippy::dbg_macro -D clippy::todo -D clippy::print_stdout -D clippy::print_stderr
109
113
114
+ - name : rustfmt
115
+ if : matrix.os == 'ubuntu-latest'
116
+ run : cargo fmt -- --check
117
+
110
118
# Weird targets to catch non-portable code
111
119
rust-cross :
112
120
if : github.repository == 'rust-lang/rust-analyzer'
@@ -121,7 +129,7 @@ jobs:
121
129
122
130
steps :
123
131
- name : Checkout repository
124
- uses : actions/checkout@v3
132
+ uses : actions/checkout@v4
125
133
126
134
- name : Install Rust toolchain
127
135
run : |
@@ -153,13 +161,13 @@ jobs:
153
161
154
162
steps :
155
163
- name : Checkout repository
156
- uses : actions/checkout@v3
164
+ uses : actions/checkout@v4
157
165
if : needs.changes.outputs.typescript == 'true'
158
166
159
167
- name : Install Nodejs
160
- uses : actions/setup-node@v3
168
+ uses : actions/setup-node@v4
161
169
with :
162
- node-version : 16
170
+ node-version : 18
163
171
if : needs.changes.outputs.typescript == 'true'
164
172
165
173
- name : Install xvfb
0 commit comments