Skip to content

Commit bba5c33

Browse files
committed
chore(ci): add actionlint
1 parent 0d9801a commit bba5c33

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

.github/actionlint-matcher.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "actionlint",
5+
"pattern": [
6+
{
7+
"regexp": "^(?:\\x1b\\[\\d+m)?(.+?)(?:\\x1b\\[\\d+m)*:(?:\\x1b\\[\\d+m)*(\\d+)(?:\\x1b\\[\\d+m)*:(?:\\x1b\\[\\d+m)*(\\d+)(?:\\x1b\\[\\d+m)*: (?:\\x1b\\[\\d+m)*(.+?)(?:\\x1b\\[\\d+m)* \\[(.+?)\\]$",
8+
"file": 1,
9+
"line": 2,
10+
"column": 3,
11+
"message": 4,
12+
"code": 5
13+
}
14+
]
15+
}
16+
]
17+
}

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,27 @@ on:
99
pull_request:
1010

1111
jobs:
12+
lint-actionlint:
13+
name: "Lint workflows"
14+
runs-on: "ubuntu-24.04"
15+
permissions:
16+
contents: read
17+
steps:
18+
- name: "Checkout"
19+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
20+
with:
21+
show-progress: false
22+
23+
- name: "Install actionlint"
24+
id: actionlint
25+
run: bash <(curl -fsSL https://raw.githubusercontent.com/rhysd/actionlint/v1.7.12/scripts/download-actionlint.bash) 1.7.12
26+
27+
- name: "Run actionlint"
28+
run: |
29+
echo "::add-matcher::.github/actionlint-matcher.json"
30+
trap 'echo "::remove-matcher owner=actionlint::"' EXIT
31+
"${{ steps.actionlint.outputs.executable }}" -color
32+
1233
ci:
1334
name: "Execute (PHP ${{ matrix.php-version }} with ${{ matrix.dependencies }} deps, composer v${{ matrix.composer-version}}.x, symfony v${{ matrix.symfony-version }})"
1435
runs-on: "ubuntu-24.04"

0 commit comments

Comments
 (0)