Skip to content

Commit cbe74a4

Browse files
ci: update test commands
1 parent ee42868 commit cbe74a4

File tree

3 files changed

+41
-19
lines changed

3 files changed

+41
-19
lines changed

.github/workflows/linux.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,16 @@ jobs:
3737
run: |
3838
rustc -Vv
3939
cargo -V
40-
cargo build
41-
- name: test
42-
run: cargo test
43-
- name: 'test ignored'
44-
run: cargo test -- --ignored
40+
cargo build --manifest-path rustfmt-core/Cargo.toml --workspace
41+
- name: bin tests
42+
run: cargo test-bin
43+
- name: lib tests
44+
run: cargo test-lib
45+
- name: config tests
46+
run: cargo test-config
47+
- name: emitter tests
48+
run: cargo test-emitter
49+
# - name: test
50+
# run: cargo test-all
51+
- name: test ignored
52+
run: cargo test-all -- --ignored

.github/workflows/mac.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,16 @@ jobs:
3232
run: |
3333
rustc -Vv
3434
cargo -V
35-
cargo build
36-
- name: test
37-
run: cargo test
38-
- name: 'test ignored'
39-
run: cargo test -- --ignored
35+
cargo build --manifest-path rustfmt-core/Cargo.toml --workspace
36+
- name: bin tests
37+
run: cargo test-bin
38+
- name: lib tests
39+
run: cargo test-lib
40+
- name: config tests
41+
run: cargo test-config
42+
- name: emitter tests
43+
run: cargo test-emitter
44+
# - name: test
45+
# run: cargo test-all
46+
- name: test ignored
47+
run: cargo test-all -- --ignored

.github/workflows/windows.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,23 @@ jobs:
7777
run: |
7878
rustc -Vv
7979
cargo -V
80-
cargo build
80+
cargo build --manifest-path rustfmt-core/Cargo.toml --workspace
8181
shell: cmd
82-
- name: test
83-
run: cargo test
82+
- name: bin tests
83+
run: cargo test-bin
8484
shell: cmd
85-
- name: 'test ignored'
86-
run: cargo test -- --ignored
85+
- name: lib tests
86+
run: cargo test-lib
8787
shell: cmd
88-
- name: 'test rustfmt-core'
89-
run: cargo test --manifest-path rustfmt-core/Cargo.toml
88+
- name: config tests
89+
run: cargo test-config
9090
shell: cmd
91-
- name: 'test rustfmt-core ignored'
92-
run: cargo test --manifest-path rustfmt-core/Cargo.toml -- --ignored
91+
- name: emitter tests
92+
run: cargo test-emitter
93+
shell: cmd
94+
# - name: test
95+
# run: cargo test-all
96+
# shell: cmd
97+
- name: test ignored
98+
run: cargo test-all -- --ignored
9399
shell: cmd

0 commit comments

Comments
 (0)