Skip to content

Commit

Permalink
Merge pull request #18 from nathan-weinberg/ci
Browse files Browse the repository at this point in the history
ci: add GitHub Action linter
  • Loading branch information
nathan-weinberg authored Apr 25, 2024
2 parents e3e59c0 + d97e043 commit 872ca7b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# SPDX-License-Identifier: Apache-2.0

name: Lint GitHub Actions workflows
on:
push:
branches:
- "main"
paths:
- '.github/**'
pull_request:
branches:
- "main"
paths:
- '.github/**'

defaults:
run:
shell: bash

jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download actionlint
id: get_actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) 1.6.27
- name: Check workflow files
run: PATH=".:$PATH" actionlint -color

0 comments on commit 872ca7b

Please sign in to comment.