Skip to content

library-test

library-test #516

Workflow file for this run

name: library-test
on:
schedule:
- cron: '0 0 * * 6'
push:
branches:
- '*'
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Format
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
Test:
strategy:
fail-fast: false
matrix:
toolchain:
- 1.66.0
- 1.70.0
name: Test (${{ matrix.toolchain }})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
components: clippy
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --all-targets -- -D warnings
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --workspace --all-targets
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --no-fail-fast --verbose
env:
RUST_BACKTRACE: full