Merge pull request #28 from 4LT/bsp #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
name: Checks and tests with ${{ matrix.feature-set }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
feature-set: ['', '--no-default-features --features alloc_fills'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
default: true | |
components: clippy | |
- name: Check | |
run: cargo check ${{ matrix.feature-set }} | |
- name: Lint | |
run: cargo clippy ${{ matrix.feature-set }} | |
- name: Test | |
run: cargo test ${{ matrix.feature-set }} |