Skip to content

Commit

Permalink
ci: update (#165)
Browse files Browse the repository at this point in the history
- Skip sandbox test for windows
- Build for all the crates per group of feature
- Test for all the crates per group of feature
  • Loading branch information
pythonbrad authored Feb 10, 2024
1 parent 792def2 commit 4fa6893
Showing 1 changed file with 37 additions and 8 deletions.
45 changes: 37 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
headless: Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- os: macos-latest
extra: -- --skip test_simple
- os: windows-latest
extra: -- --skip test_simple

steps:
- uses: actions/checkout@v3
Expand All @@ -42,21 +44,48 @@ jobs:
run: ${{matrix.headless}}

- name: Rustfmt
run: |
cargo fmt -- --check
run: cargo fmt -- --check

- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings

- name: Build
run: cargo build --all-features --verbose

- name: Build (minimal)
run: |
cargo test --no-run -p afrim-memory --verbose
cargo test --no-run -p afrim-preprocessor --no-default-features --verbose
cargo test --no-run -p afrim-translator --no-default-features --verbose
cargo test --no-run -p afrim-config --no-default-features --verbose
cargo test --no-run -p afrim --no-default-features --verbose
- name: Build (normal)
run: |
cargo test --no-run -p afrim-preprocessor --verbose
cargo test --no-run -p afrim-translator --verbose
cargo test --no-run -p afrim-config --verbose
cargo test --no-run -p afrim --verbose
- name: Build (full)
run: |
cargo test --no-run -p afrim-preprocessor --all-features --verbose
cargo test --no-run -p afrim --all-features --verbose
- name: Run tests (minimal)
run: cargo test --no-default-features --lib --bins --tests --verbose ${{matrix.extra}}
run: |
cargo test -p afrim-memory --verbose
cargo test -p afrim-preprocessor --no-default-features --verbose
cargo test -p afrim-translator --no-default-features --verbose
cargo test -p afrim-config --no-default-features --verbose
cargo test -p afrim --no-default-features --verbose ${{matrix.extra}}
- name: Run tests (normal)
run: cargo test --lib --bins --tests --verbose ${{matrix.extra}}
run: |
cargo test -p afrim-preprocessor --verbose
cargo test -p afrim-translator --verbose
cargo test -p afrim-config --verbose
cargo test -p afrim --verbose ${{matrix.extra}}
- name: Run tests (full)
run: cargo test --all-features --lib --bins --tests --verbose ${{matrix.extra}}
run: |
cargo test -p afrim-preprocessor --all-features --verbose
cargo test -p afrim --all-features --verbose ${{matrix.extra}}

0 comments on commit 4fa6893

Please sign in to comment.