Skip to content

chore: run cargo fmt (#19) #68

chore: run cargo fmt (#19)

chore: run cargo fmt (#19) #68

Workflow file for this run

name: Rust
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{matrix.os}}
steps:
- uses: taiki-e/checkout-action@v1
- uses: oxc-project/[email protected]
with:
save-cache: ${{ github.ref_name == 'main' }}
- run: cargo check
- run: cargo test
fmt:
runs-on: ubuntu-latest
steps:
- uses: taiki-e/checkout-action@v1
- uses: oxc-project/[email protected]
with:
components: rustfmt
- run: cargo fmt --check