Skip to content

Commit b9cbdac

Browse files
🔧 add CI workflow checker
1 parent 94fd684 commit b9cbdac

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Lint workflows
2+
3+
on:
4+
workflow_call:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
actionlint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Download actionlint
15+
id: get_actionlint
16+
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
17+
shell: bash
18+
- name: Run actionlint
19+
run: ${{ steps.get_actionlint.outputs.executable }} -color
20+
shell: bash

.github/workflows/pull-request.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ permissions:
88
pull-requests: read
99

1010
jobs:
11+
workflow-lint:
12+
uses: ./.github/workflows/_workflow_lint.yml
1113
static_analysis:
1214
uses: ./.github/workflows/_static-analysis.yml
15+
needs: workflow-lint
1316
build:
1417
uses: ./.github/workflows/_build.yml
1518
needs: static_analysis

0 commit comments

Comments
 (0)