Skip to content

Commit a165205

Browse files
committed
Add CI workflow to check formatting
1 parent 6ec2983 commit a165205

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

Diff for: .github/workflows/check-formatting.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Check formatting
2+
3+
on:
4+
push:
5+
paths:
6+
- ".github/workflows/check-formatting.yml"
7+
- "Taskfile.yml"
8+
- ".prettierrc"
9+
- "**.go"
10+
- "**.json"
11+
- "**.md"
12+
- "**.yaml"
13+
- "**.yml"
14+
pull_request:
15+
paths:
16+
- ".github/workflows/check-formatting.yml"
17+
- "Taskfile.yml"
18+
- ".prettierrc"
19+
- "**.go"
20+
- "**.json"
21+
- "**.md"
22+
- "**.yaml"
23+
- "**.yml"
24+
25+
jobs:
26+
check-formatting:
27+
runs-on: ubuntu-latest
28+
29+
steps:
30+
- name: Checkout local repository
31+
uses: actions/checkout@v2
32+
33+
- name: Install Taskfile
34+
uses: arduino/actions/setup-taskfile@master
35+
with:
36+
repo-token: ${{ secrets.GITHUB_TOKEN }}
37+
version: 3.x
38+
39+
- name: Check Go code formatting
40+
run: task go:check-formatting
41+
42+
- name: Check documentation formatting
43+
run: task docs:check-formatting
44+
45+
- name: Check configuration file formatting
46+
run: task config:check-formatting

0 commit comments

Comments
 (0)