Skip to content

Clippy!

Clippy! #26

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- name: Install latest Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Lint
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy
- name: Install tarpaulin
if: ${{ matrix.os == 'ubuntu-latest' }}
run: cargo install cargo-tarpaulin
- name: Build and Test (Coverage)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: cargo tarpaulin --out Xml
- name: Build and Test (No Coverage)
if: ${{ matrix.os != 'ubuntu-latest' }}
run: cargo test
- name: Upload coverage to Codecov
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: codecov/codecov-action@v3