| 1 |
name: Build & Test |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [master] |
| 6 |
pull_request: |
| 7 |
branches: [master] |
| 8 |
|
| 9 |
jobs: |
| 10 |
buid-test-check: |
| 11 |
strategy: |
| 12 |
matrix: |
| 13 |
platform: |
| 14 |
- ubuntu-latest |
| 15 |
- windows-latest |
| 16 |
- macos-latest |
| 17 |
runs-on: ${{ matrix.platform }} |
| 18 |
|
| 19 |
steps: |
| 20 |
- uses: actions/checkout@v2 |
| 21 |
- uses: Swatinem/rust-cache@v2 |
| 22 |
- name: Install Rust |
| 23 |
uses: actions-rs/toolchain@v1 |
| 24 |
with: |
| 25 |
toolchain: stable |
| 26 |
profile: minimal |
| 27 |
default: true |
| 28 |
override: true |
| 29 |
- name: Build & Test (Default) |
| 30 |
run: cargo test --verbose --no-fail-fast |
| 31 |
- name: Build & Test (inline-comment) |
| 32 |
run: cargo test --verbose --no-fail-fast --features inline-comment |
| 33 |
- name: Build & Test (case-insensitive) |
| 34 |
run: cargo test --verbose --no-fail-fast --features case-insensitive |