Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ad1a095

Browse files
committedJan 9, 2023
feat(ci): add lint-actions step to build.yaml
This adds a new job to the Build CI pipeline to lint our GitHub Actions. By doing this, we can prevent typos from slipping in. Fixes #5776
1 parent 67416b7 commit ad1a095

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎.github/workflows/build.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,18 @@ jobs:
139139
if: steps.changed-files.outputs.any_changed == 'true'
140140
run: yarn lint:ts
141141

142+
lint-actions:
143+
name: Lint GitHub Actions
144+
runs-on: ubuntu-latest
145+
steps:
146+
- name: Checkout repo
147+
uses: actions/checkout@v3
148+
- name: Check workflow files
149+
run: |
150+
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
151+
./actionlint -color
152+
shell: bash
153+
142154
test-unit:
143155
name: Run unit tests
144156
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)
Please sign in to comment.