Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add actionlint workflow #158

Merged
merged 8 commits into from
Oct 2, 2024
Merged
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/lint-workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lint GitHub Actions workflows

on:
push:
paths:
- '**.yml'
tyrann0us marked this conversation as resolved.
Show resolved Hide resolved
pull_request:
workflow_dispatch:
workflow_call:

jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up problem matchers for actionlint
run: |
curl -s -o actionlint-matcher.json https://raw.githubusercontent.com/rhysd/actionlint/main/.github/actionlint-matcher.json
echo "::add-matcher::${GITHUB_WORKSPACE}/actionlint-matcher.json"

- name: Run actionlint
uses: docker://rhysd/actionlint:latest
with:
args: -color -pyflakes= -shellcheck=