Skip to content

Commit

Permalink
Add a github workflow to run rust fmt (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
gybrish committed Nov 16, 2022
1 parent 5af17a6 commit 64191a3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/format.yml
@@ -0,0 +1,21 @@
name: Rustfmt

on:
# Triggers the workflow on push request events but only for the master branch
push:
branches: [ main ]

jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Toolchain setup
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt

- uses: actions/checkout@v2
- name: Run rustfmt
run: cargo fmt --check

0 comments on commit 64191a3

Please sign in to comment.