2021-10-17 14:43:52 +02:00
|
|
|
name: tests
|
2021-10-17 13:09:59 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
2021-10-17 13:24:46 +02:00
|
|
|
ci:
|
2021-10-19 15:16:33 +02:00
|
|
|
runs-on: ${{ matrix.os }}
|
2021-10-17 13:24:46 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-10-19 15:16:33 +02:00
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
- windows-latest
|
|
|
|
- macOS-latest
|
2021-10-17 13:24:46 +02:00
|
|
|
rust:
|
|
|
|
# - stable # Add when version 2021 is stable
|
|
|
|
- nightly
|
2021-10-17 13:09:59 +02:00
|
|
|
|
|
|
|
steps:
|
2021-10-17 13:24:46 +02:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: ${{ matrix.rust }}
|
|
|
|
override: true
|
|
|
|
components: rustfmt, clippy
|
|
|
|
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: build
|
|
|
|
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: test
|
|
|
|
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: fmt
|
|
|
|
args: --all -- --check
|
|
|
|
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: clippy
|
|
|
|
args: -- -D warnings
|