lenient-semver-range/.github/workflows/checks.yml
2021-02-28 23:48:53 +01:00

38 lines
792 B
YAML

name: checks
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
checks:
name: Tests and clippy checks
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust: [stable, beta, nightly]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy
override: true
- name: Install cargo-make
uses: davidB/rust-cargo-make@v1
- name: Run CI
uses: actions-rs/cargo@v1
with:
command: make
args: ci