Skip to content

Merge pull request #103 from rhysd/github-actions #1

Merge pull request #103 from rhysd/github-actions

Merge pull request #103 from rhysd/github-actions #1

Workflow file for this run

name: CI
on: [push, pull_request]
env:
RUSTFLAGS: -D warnings
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
jobs:
unit-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- run: cargo fmt -- --check