Skip to content

Fix format

Fix format #38

Workflow file for this run

name: Main
on:
push:
branches-ignore:
- 'releases/**'
- 'dependabot/**'
paths-ignore:
- '**.md'
- '.gitignore'
- '.github/dependabot.yml'
pull_request:
paths-ignore:
- '**.md'
- '.gitignore'
- '.github/dependabot.yml'
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Clone repo
uses: actions/checkout@v3
- name: Cache crates
uses: Swatinem/rust-cache@v2
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
clippy:
name: Clippy
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Clone repo
uses: actions/checkout@v3
- name: Cache crates
uses: Swatinem/rust-cache@v2
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --no-deps --examples -- -D warnings
format:
name: Format
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v3
- name: Format
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check