From 7c00880554cfd015ef61134fd33e34487885de8e Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sat, 21 Dec 2024 16:04:00 +0100 Subject: [PATCH] GH Actions: add actionlint job This job checks the GH Actions workflows against syntax errors and other problems. --- .github/workflows/cs.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cs.yml b/.github/workflows/cs.yml index c80bc68..4cb3e53 100644 --- a/.github/workflows/cs.yml +++ b/.github/workflows/cs.yml @@ -11,7 +11,7 @@ on: - 'composer.lock' - '.phpcs.xml.dist' - 'phpcs.xml.dist' - - '.github/workflows/cs.yml' + - '.github/workflows/**' pull_request: paths: - '**.php' @@ -19,7 +19,7 @@ on: - 'composer.lock' - '.phpcs.xml.dist' - 'phpcs.xml.dist' - - '.github/workflows/cs.yml' + - '.github/workflows/**' # Allow manually triggering the workflow. workflow_dispatch: @@ -30,6 +30,10 @@ concurrency: cancel-in-progress: true jobs: + actionlint: + name: 'Lint GH Action workflows' + uses: Yoast/.github/.github/workflows/reusable-actionlint.yml@main + checkcs: name: 'Check code style' runs-on: ubuntu-latest