Skip to content

Commit

Permalink
ci(actionlint): add linting of GitHub action workflow files
Browse files Browse the repository at this point in the history
WORK IN PROGRESS

Fixes #2634

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
  • Loading branch information
petermetz committed Aug 25, 2023
1 parent 4767b87 commit 90b2cca
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Lint GitHub Actions workflows
on:
workflow_call:

jobs:
actionlint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3.5.3
- name: Download actionlint
id: get_actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/v1.6.25/scripts/download-actionlint.bash)
shell: bash
- name: Check workflow files
run: ${{ steps.get_actionlint.outputs.executable }} -color
shell: bash
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
jobs:
ActionLint:
uses: ./.github/workflows/actionlint.yaml
DCI-Lint:
name: DCI-Lint
runs-on: ubuntu-20.04
Expand Down

0 comments on commit 90b2cca

Please sign in to comment.