Files
Benjamin Saunders 469206fd9e Remove clippy from CI
This is a stable branch, where the churn of adapting to new clippy
lints isn't justified.
2021-04-04 13:41:46 -07:00

64 lines
1.3 KiB
YAML

name: CI
on:
push:
branches: ['main', '0.5.x']
pull_request:
schedule:
- cron: "21 3 * * 5"
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rust: [stable, beta, 1.46.0]
exclude:
- os: macos-latest
rust: beta
- os: macos-latest
rust: 1.46.0
- os: windows-latest
rust: beta
- os: windows-latest
rust: 1.46.0
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- uses: actions-rs/cargo@v1
with:
command: build
args: --all-targets
- uses: actions-rs/cargo@v1
with:
command: test
args: --workspace
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: EmbarkStudios/cargo-deny-action@v1