# vim: tw=2,ts=2,sw=2
name: build + test
on: [push]

env:
  RUSTFLAGS: "-Dwarnings"
jobs:
  build:
    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest, macos-latest]
      fail-fast: false
    runs-on: ${{ matrix.os }}
    steps:
      - name: checkout
        uses: actions/checkout@v3
      - name: init toolchain
        uses: actions-rs/toolchain@v1
        with:
          toolchain: stable
          default: true
          override: true
          components: clippy
      - name: build
        run: cargo build --tests --workspace --all-features
      - name: clippy
        run: cargo clippy --tests --workspace --all-features
      - name: test
        run: cargo test --workspace --all-features
