Debian Codegraph @

.cargo/vendor/hex/.github/workflows/rust.yml

raw
1 name: Test hex
2 on: [push, pull_request]
3
4 env:
5 RUST_BACKTRACE: '1'
6 RUSTFLAGS: -D warnings
7
8 jobs:
9 test:
10 runs-on: ${{ matrix.os }}
11 strategy:
12 # We want the tests to run on all configurations, even if jobs (like on nightly), fail.
13 fail-fast: false
14 matrix:
15 os: [ubuntu-latest, windows-latest, macos-latest]
16 rust: [stable, beta, nightly]
17
18 steps:
19 - uses: actions/checkout@v2
20 - uses: hecrj/setup-rust-action@v1
21 with:
22 rust-version: ${{ matrix.rust }}
23 - name: Build
24 run: cargo build --verbose
25 - name: Run tests
26 run: cargo test --verbose
27 - name: Run tests [no-default-features]
28 run: cargo test --verbose --no-default-features
29 - name: Run tests [serde]
30 run: cargo test --verbose --features serde
31 - name: Validate benches still work
32 run: cargo bench --all -- --test