Skip to content

chore: clippy cleanups #67

chore: clippy cleanups

chore: clippy cleanups #67

Workflow file for this run

name: CI
on:
push:
branches:
- staging
- trying
pull_request:
workflow_dispatch:
jobs:
clippy:
name: Clippy
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
rust: [stable]
steps:
- uses: actions/checkout@v2
- name: Install ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: check clippy
run: make check-clippy RUSTV=${{ matrix.rust }}
rustfmt:
name: Rustfmt
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
rust: [stable]
steps:
- uses: actions/checkout@v2
- name: Install ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: check fmt
run: make check-fmt RUSTV=${{ matrix.rust }}
unit_test:
name: Unit test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
rust: [stable]
steps:
- uses: actions/checkout@v2
- name: Install ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Run unit tests
run: make test-all
done:
name: "Done"
needs: [clippy, rustfmt, unit_test]
runs-on: ubuntu-latest
steps:
- run: echo "Done!"