Skip to content

Commit a64db2e

Browse files
BananeweizenCalixte
authored andcommitted
infra: add github actions linter
Taken from the main checkstyle repository.
1 parent 31bc17f commit a64db2e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/actionlint.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Lint workflows of GitHub Actions
2+
on:
3+
push:
4+
branches:
5+
- master
6+
paths:
7+
- '.github/workflows/**'
8+
pull_request:
9+
branches:
10+
- '*'
11+
paths:
12+
- '.github/workflows/**'
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
actionlint:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v3
24+
25+
- name: Check workflow files
26+
uses: docker://rhysd/actionlint:latest

0 commit comments

Comments
 (0)