Skip to content

Migration to Github Actions #3

Migration to Github Actions

Migration to Github Actions #3

Workflow file for this run

on:
pull_request:
push:
branches: main
name: Continuous integration
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.78.0
override: true
- uses: actions-rs/cargo@v1
with:
command: check
test:
name: Test Suite
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- windows-latest
- ubuntu-latest
- macos-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.78.0
- uses: Swatinem/rust-cache@v2
- run: cargo test --all-features --all-targets --workspace
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.78.0
components: rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.78.0
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --all-features --all-targets --workspace -- -D warnings