From e39783109ac6aeff584979d2bda7f3d4679077a1 Mon Sep 17 00:00:00 2001 From: Charlie Dowler Date: Thu, 13 Aug 2026 23:02:19 +0100 Subject: [PATCH] ci: validate published workflow templates --- .github/actionlint.yaml | 9 +++++++++ .github/workflows/lint-templates.yml | 17 +++++++++++++++++ renovate.json | 9 +++++++++ 3 files changed, 35 insertions(+) create mode 100644 .github/actionlint.yaml create mode 100644 .github/workflows/lint-templates.yml create mode 100644 renovate.json diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml new file mode 100644 index 0000000..2185ca4 --- /dev/null +++ b/.github/actionlint.yaml @@ -0,0 +1,9 @@ +paths: + # Accepted style advisories in existing templates. + "{compile,deploy,start-preview,close-preview,refresh,lightdash-validate}.yml": + ignore: + - "shellcheck reported issue" + # Genuine validity error tracked in PROD-10126; remove when that ticket is fixed. + close-preview.yml: + ignore: + - "invalid activity type \"merged\"" diff --git a/.github/workflows/lint-templates.yml b/.github/workflows/lint-templates.yml new file mode 100644 index 0000000..c2bfed8 --- /dev/null +++ b/.github/workflows/lint-templates.yml @@ -0,0 +1,17 @@ +name: Lint workflow templates + +on: + pull_request: + push: + branches: + - main + +jobs: + actionlint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - name: Lint root-level workflow templates + uses: docker://rhysd/actionlint:1.7.12 + with: + args: compile.yml deploy.yml start-preview.yml close-preview.yml refresh.yml lightdash-validate.yml diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..fe431d1 --- /dev/null +++ b/renovate.json @@ -0,0 +1,9 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["config:recommended"], + "github-actions": { + "managerFilePatterns": [ + "/^(?:compile|deploy|start-preview|close-preview|refresh|lightdash-validate)\\.yml$/" + ] + } +}