Remove logging, accumulate errors instead #9
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the source code | |
uses: actions/checkout@main | |
- name: Install Rust stable | |
run: | | |
rustup toolchain update --no-self-update stable | |
rustup default stable | |
rustup component add clippy rustfmt | |
- name: Run rustfmt | |
run: cargo fmt -- --check | |
- name: Run clippy | |
run: cargo clippy --all-features | |
env: | |
RUSTFLAGS: -D warnings | |
test: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
rust_versions: ["stable", "1.66"] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- name: Checkout the source code | |
uses: actions/checkout@main | |
- name: Install Rust Versions | |
run: | | |
rustup toolchain install --no-self-update ${{ matrix.rust_versions }} | |
rustup default stable | |
- name: Build lib | |
run: rustup run ${{ matrix.rust_versions }} cargo build ${{ matrix.cargo_build_flags }} | |
- name: test lib | |
run: cargo test --all-features | |
env: | |
RUSTFLAGS: -D warnings |