Skip to content

Commit

Permalink
chore: Add actions linter (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
nahsi authored Jan 16, 2023
1 parent 480748b commit 95792f7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
self-hosted-runner:
labels:
- builder
20 changes: 15 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,33 @@
name: "lint"
name: lint

on:
pull_request:
types:
- opened
- reopened
- edited
- synchronize
- ready_for_review

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

jobs:
lint-pr:
name: "Validate PR title"
pr:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

reviewdog:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Lint actions
uses: reviewdog/action-actionlint@v1
with:
reporter: github-pr-check
fail_on_error: true

0 comments on commit 95792f7

Please sign in to comment.