From a45b97bafeb24127b2d4b7538d9ab3eab8fe290a Mon Sep 17 00:00:00 2001 From: Anatolios Laskaris Date: Mon, 23 Jan 2023 09:36:25 +0200 Subject: [PATCH] chore: Add actions linter (#438) Add actions linter --- .github/actionlint.yaml | 3 +++ .github/workflows/lint.yml | 14 +++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .github/actionlint.yaml diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml new file mode 100644 index 00000000..be1bfdcd --- /dev/null +++ b/.github/actionlint.yaml @@ -0,0 +1,3 @@ +self-hosted-runner: + labels: + - builder diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 343ce037..8861aafe 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,10 +12,22 @@ concurrency: cancel-in-progress: true jobs: - main: + 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