Skip to content

Merge pull request #55 from asaaki/dependabot/github_actions/actions/… #116

Merge pull request #55 from asaaki/dependabot/github_actions/actions/…

Merge pull request #55 from asaaki/dependabot/github_actions/actions/… #116

Workflow file for this run

name: Continuous Integration
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
RUSTFLAGS: -Dwarnings
jobs:
build_and_test:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust: [stable]
steps:
- uses: actions/[email protected]
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
- uses: Swatinem/[email protected]
- run: cargo fetch
- run: cargo check --all
- run: cargo build --all
- run: cargo test --all
check_fmt_and_docs:
name: Checking fmt, clippy, and docs
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/[email protected]
- run: cargo check --all
- run: cargo clippy --tests -- -D warnings
- run: cargo fmt --all -- --check
- run: cargo doc --no-deps