Skip to content

Commit ed7d0e1

Browse files
committed
Restructure workspace
1 parent 8ea50e2 commit ed7d0e1

File tree

7 files changed

+683
-600
lines changed

7 files changed

+683
-600
lines changed

.github/workflows/pr.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
matrix:
99
rust:
1010
- version: 1.58.1
11-
run-all: false
11+
integration-tests: false
1212
- version: 1.80.1
13-
run-all: true
13+
integration-tests: true
1414

1515
steps:
1616
- uses: actions/checkout@v2
@@ -34,25 +34,24 @@ jobs:
3434
rustup default ${{ matrix.rust.version }}
3535
3636
- name: Check lib
37-
run: $HOME/.cargo/bin/cargo check --lib
38-
39-
- name: Check all
40-
# We can't use --all-targets because it includes benches which requires nightly compiler
41-
run: $HOME/.cargo/bin/cargo check --workspace --lib --bins --examples --tests
42-
if: ${{ matrix.rust.run-all }}
43-
44-
- name: Clippy
45-
# We can't use --all-targets because it includes benches which requires nightly compiler
46-
run: $HOME/.cargo/bin/cargo clippy --workspace --lib --bins --examples --tests
47-
if: ${{ matrix.rust.run-all }}
48-
49-
- name: Check Format
50-
run: $HOME/.cargo/bin/cargo fmt --check
51-
if: ${{ matrix.rust.run-all }}
37+
run: |
38+
$HOME/.cargo/bin/cargo check --all-targets --no-default-features
39+
$HOME/.cargo/bin/cargo check --all-targets
40+
$HOME/.cargo/bin/cargo clippy --all-targets
41+
$HOME/.cargo/bin/cargo fmt --check
42+
$HOME/.cargo/bin/cargo test
43+
env:
44+
RUST_BACKTRACE: 1
5245

53-
- name: Test
54-
run: $HOME/.cargo/bin/cargo test --workspace
55-
if: ${{ matrix.rust.run-all }}
46+
- name: Check integration tests
47+
run: |
48+
pushd integration_tests
49+
$HOME/.cargo/bin/cargo check --all-targets
50+
$HOME/.cargo/bin/cargo clippy --all-targets
51+
$HOME/.cargo/bin/cargo fmt --check
52+
$HOME/.cargo/bin/cargo test
53+
popd
54+
if: ${{ matrix.rust.integration-tests }}
5655
env:
5756
RUST_BACKTRACE: 1
5857

0 commit comments

Comments
 (0)