Skip to content

Commit d4480fe

Browse files
committed
Add CI workflow to lint configuration files
Currently used to validate the GitHub Actions workflows.
1 parent a843bdd commit d4480fe

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/lint-config.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Lint configuration files
2+
3+
on:
4+
push:
5+
paths:
6+
- ".github/workflows/lint-config.yml"
7+
- "Taskfile.yml"
8+
- ".github/workflows/*.yml"
9+
pull_request:
10+
paths:
11+
- ".github/workflows/lint-config.yml"
12+
- "Taskfile.yml"
13+
- ".github/workflows/*.yml"
14+
schedule:
15+
# Run every Tuesday at 03:00 UTC to catch breakage caused by changes to the GitHub Actions workflow schema
16+
- cron: "0 3 * * 2"
17+
18+
jobs:
19+
lint:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout local repository
23+
uses: actions/checkout@v2
24+
25+
- name: Install Taskfile
26+
uses: arduino/actions/setup-taskfile@master
27+
with:
28+
repo-token: ${{ secrets.GITHUB_TOKEN }}
29+
version: 3.x
30+
31+
- name: Lint configuration files
32+
run: task config:lint

0 commit comments

Comments
 (0)