Skip to content

Commit 9e0f6ec

Browse files
authored
ci: add actionlint workflow to check workflows syntax (#3090)
* ci: add actionlint workflow to check workflows syntax * verbose
1 parent 471d174 commit 9e0f6ec

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Github workflows linter
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/workflows/**"
7+
8+
jobs:
9+
lint-workflows:
10+
runs-on: ubuntu-slim
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
14+
15+
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
16+
with:
17+
go-version: ">=1.24.0"
18+
19+
- name: Install actionlint
20+
run: go install github.com/rhysd/actionlint/cmd/actionlint@latest
21+
22+
- name: Run actionlint
23+
run: actionlint -verbose

0 commit comments

Comments
 (0)