Skip to content

Commit 64191a3

Browse files
authored
Add a github workflow to run rust fmt (projectfluent#289)
1 parent 5af17a6 commit 64191a3

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/format.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Rustfmt
2+
3+
on:
4+
# Triggers the workflow on push request events but only for the master branch
5+
push:
6+
branches: [ main ]
7+
8+
jobs:
9+
format:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Toolchain setup
13+
uses: actions-rs/toolchain@v1
14+
with:
15+
toolchain: nightly
16+
override: true
17+
components: rustfmt
18+
19+
- uses: actions/checkout@v2
20+
- name: Run rustfmt
21+
run: cargo fmt --check

0 commit comments

Comments
 (0)