Skip to content

Check

Check #90

Workflow file for this run

## Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
name: Check
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
rust-version: [ 1.56.1, stable, beta, nightly ]
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust-version }}
override: true
components: clippy, rustfmt, llvm-tools-preview
- uses: Swatinem/rust-cache@v1
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --all --all-targets
- name: Run unit tests
uses: actions-rs/cargo@v1
with:
command: test
args: --lib
- name: Run integration tests
uses: actions-rs/cargo@v1
with:
command: test
- name: Lint
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all -- -D warnings
- name: Check Rust formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
test-windows:
name: Test on Windows
runs-on: windows-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.56.1
override: true
components: llvm-tools-preview
- uses: Swatinem/rust-cache@v1
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --all --all-targets
- name: Run unit tests
uses: actions-rs/cargo@v1
with:
command: test
args: --lib
- name: Run integration tests
uses: actions-rs/cargo@v1
with:
command: test