File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 28
28
- uses : actions/checkout@v4
29
29
30
30
- name : Install Rust toolchain
31
- uses : dtolnay/rust-toolchain@${{ matrix.rust_os.rust }}
31
+ uses : dtolnay/rust-toolchain@master
32
+ with :
33
+ toolchain : ${{ matrix.rust_os.rust }}
34
+ components : rustfmt
32
35
33
36
# Newer dependency versions may not support rustc 1.70, so we use a Cargo.lock file for those
34
37
# builds along with `--locked`.
39
42
echo "CARGO_LOCKED=--locked" >> $GITHUB_ENV
40
43
41
44
# FIXME: also run petstore integration tests
42
- - name : Run tests
45
+ - name : Run default tests
43
46
run : cargo ${CARGO_LOCKED} test
44
47
45
48
clippy-fmt :
@@ -58,12 +61,14 @@ jobs:
58
61
- name : Use MSRV lockfile
59
62
run : cp Cargo-1.70.lock Cargo.lock
60
63
61
- - name : Check fmt
62
- run : cargo --locked fmt --all -- --check
63
-
64
64
- name : Run Clippy
65
65
run : cargo --locked clippy --all -- --deny warnings
66
66
67
+ # Cargo fmt doesn't run build.rs, so we need to run clippy first in order for
68
+ # openapi-lambda-test to pass (since it depends on the .openapi-lambda output directory).
69
+ - name : Check fmt
70
+ run : cargo --locked fmt --all -- --check
71
+
67
72
audit :
68
73
name : Cargo Audit (stable only)
69
74
runs-on : ubuntu-22.04
You can’t perform that action at this time.
0 commit comments