Skip to content

CI

CI #196

Workflow file for this run

name: CI
on:
push:
branches: ['main']
pull_request:
schedule:
- cron: "32 4 * * 5"
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rust: [stable, beta]
exclude:
- os: macos-latest
rust: beta
- os: windows-latest
rust: beta
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: ./.github/actions/setup
with:
toolchain: ${{ matrix.rust }}
key: test-${{ matrix.os }}-${{ matrix.rust }}
- run: cargo build
- run: cargo test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ./.github/actions/setup
with:
key: lint
components: rustfmt, clippy
- run: cargo fmt --all -- --check
- run: cargo clippy --all-targets -- -D warnings