Started on preprocessor refactor and adding better tests #104
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 CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
rust: [stable, nightly] | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
steps: | |
- uses: actions/checkout@master | |
- name: Build | |
run: | | |
rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }} | |
cargo build | |
test: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
needs: [build] | |
strategy: | |
matrix: | |
rust: [stable, nightly] | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
steps: | |
- uses: actions/checkout@master | |
- name: Test | |
run: | | |
rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }} | |
cargo test | |
rustfmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Rustfmt Check | |
run: | | |
rustup update stable && rustup default stable && rustup component add rustfmt | |
cargo fmt -- --check | |
clippy-check: | |
name: Clippy Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
components: clippy | |
override: true |