Skip to content

Commit

Permalink
add format workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
isaak committed May 26, 2024
1 parent ae481ce commit 6f9daff
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 'Format Check'

on:

workflow_dispatch:

push:
branches:
- main

pull_request:

permissions:
contents: read
pull-requests: read

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
check-format:
runs-on: ubuntu-latest
steps:
- name: Checkout & Setup Toolchain
uses: actions/checkout@v4
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Run Formatter
run: cargo fmt --check

0 comments on commit 6f9daff

Please sign in to comment.