Skip to content

Commit

Permalink
ci: run unit tests on test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
roeap committed Dec 5, 2023
1 parent 4d03d21 commit b149ff7
Showing 1 changed file with 33 additions and 4 deletions.
37 changes: 33 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,39 @@ jobs:
- name: Check docs
run: cargo doc --no-deps

test:
unit:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-11
- windows-latest
runs-on: ${{ matrix.os }}

env:
# Disable full debug symbol generation to speed up CI build and keep memory down
RUSTFLAGS: -C debuginfo=line-tables-only
# Disable incremental builds by cargo for CI which should save disk space
# and hopefully avoid final link "No space left on device"
CARGO_INCREMENTAL: 0

steps:
- uses: actions/checkout@v3

- name: Install minimal stable with clippy and rustfmt
uses: actions-rs/toolchain@v1
with:
profile: default
toolchain: "stable"
override: true

- uses: Swatinem/rust-cache@v2

- name: Run unit tests
run: cargo test --lib

integration:
strategy:
fail-fast: false
runs-on: ubuntu-latest
Expand Down Expand Up @@ -83,8 +115,5 @@ jobs:

- uses: Swatinem/rust-cache@v2

- name: Run unit tests
run: cargo test --lib

- name: Run integration tests
run: cargo test --tests

0 comments on commit b149ff7

Please sign in to comment.