Skip to content

chore(version): 0.0.2 #8

chore(version): 0.0.2

chore(version): 0.0.2 #8

Workflow file for this run

name: format
on: [push, pull_request]
env:
RUSTUP_TOOLCHAIN: nightly
RUSTUP_HOME: /home/runner/.cargo
CARGO_TERM_COLOR: always
LLVM_VERSION: 14.0.0
jobs:
format:
name: format
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
with:
all_but_latest: true
access_token: ${{ github.token }}
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUSTUP_TOOLCHAIN }}
profile: minimal
components: rustfmt
override: true
default: true
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check