File tree Expand file tree Collapse file tree 4 files changed +32
-8
lines changed Expand file tree Collapse file tree 4 files changed +32
-8
lines changed Original file line number Diff line number Diff line change 40
40
ql/target
41
41
key : ${{ runner.os }}-${{ steps.os_version.outputs.version }}-qltest-cargo-${{ hashFiles('ql/rust-toolchain.toml', 'ql/**/Cargo.lock') }}
42
42
- name : Check formatting
43
- run : cd ql; cargo fmt --all -- --check
43
+ run : cd ql; cargo fmt -- --check
44
44
- name : Build extractor
45
45
run : |
46
46
cd ql;
Original file line number Diff line number Diff line change 79
79
key : ${{ runner.os }}-${{ steps.os_version.outputs.version }}-ruby-rust-cargo-${{ hashFiles('ruby/extractor/rust-toolchain.toml', 'ruby/extractor/**/Cargo.lock') }}
80
80
- name : Check formatting
81
81
if : steps.cache-extractor.outputs.cache-hit != 'true'
82
- run : cd extractor && cargo fmt --all -- --check
82
+ run : cd extractor && cargo fmt -- --check
83
83
- name : Build
84
84
if : steps.cache-extractor.outputs.cache-hit != 'true'
85
85
run : cd extractor && cargo build --verbose
Original file line number Diff line number Diff line change @@ -23,22 +23,46 @@ permissions:
23
23
contents : read
24
24
25
25
jobs :
26
- rust-code :
26
+ rust-ast-generator :
27
27
runs-on : ubuntu-latest
28
+ defaults :
29
+ run :
30
+ working-directory : rust/ast-generator
28
31
steps :
29
32
- name : Checkout
30
33
uses : actions/checkout@v4
34
+ - name : Inject sources
35
+ shell : bash
36
+ run : |
37
+ bazel run //rust/ast-generator:inject_sources
31
38
- name : Format
32
- working-directory : rust/extractor
33
39
shell : bash
34
40
run : |
35
41
cargo fmt --check
36
42
- name : Compilation
37
- working-directory : rust/extractor
38
43
shell : bash
39
44
run : cargo check
40
45
- name : Clippy
46
+ shell : bash
47
+ run : |
48
+ cargo clippy --fix
49
+ git diff --exit-code
50
+ rust-code :
51
+ runs-on : ubuntu-latest
52
+ defaults :
53
+ run :
41
54
working-directory : rust/extractor
55
+ steps :
56
+ - name : Checkout
57
+ uses : actions/checkout@v4
58
+ - name : Format
59
+ shell : bash
60
+ run : |
61
+ cargo fmt --check
62
+ - name : Compilation
63
+ shell : bash
64
+ run : cargo check
65
+ - name : Clippy
42
66
shell : bash
43
67
run : |
44
68
cargo clippy --fix
Original file line number Diff line number Diff line change @@ -32,17 +32,17 @@ jobs:
32
32
steps :
33
33
- uses : actions/checkout@v4
34
34
- name : Check formatting
35
- run : cargo fmt --all -- --check
35
+ run : cargo fmt -- --check
36
36
- name : Run tests
37
37
run : cargo test --verbose
38
38
fmt :
39
- runs-on : ubuntu-latest
39
+ runs-on : ubuntu-latest
40
40
steps :
41
41
- uses : actions/checkout@v4
42
42
- name : Check formatting
43
43
run : cargo fmt --check
44
44
clippy :
45
- runs-on : ubuntu-latest
45
+ runs-on : ubuntu-latest
46
46
steps :
47
47
- uses : actions/checkout@v4
48
48
- name : Run clippy
You can’t perform that action at this time.
0 commit comments