-
-
Notifications
You must be signed in to change notification settings - Fork 30
29 lines (27 loc) · 1.12 KB
/
rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Build & Test
on: [push, pull_request]
jobs:
no_and_all_features:
runs-on: ubuntu-latest
strategy:
matrix:
target: [x86_64-unknown-linux-gnu, wasm32-unknown-unknown]
steps:
- uses: actions/checkout@v2
- run: rustup target add ${{ matrix.target }}
- run: cargo build --workspace --target ${{ matrix.target }}
- run: cargo build --workspace --target ${{ matrix.target }} --all-features
- run: cargo test --workspace --target ${{ matrix.target }} && cargo test --workspace --target ${{ matrix.target }} --all-features
if: contains(matrix.target, 'linux')
feature_tests:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ubuntu, macos, windows]
third-party-integration-feature: [handlebars, tera]
file-walker-feature: [walkdir, ignore]
steps:
- uses: actions/checkout@v2
- run: |
cargo build --features ${{ matrix.third-party-integration-feature }},${{ matrix.file-walker-feature }}
cargo test --verbose --features ${{ matrix.third-party-integration-feature }},${{ matrix.file-walker-feature }}