From c1e27a88e0ee4ea817e96ff84020ff27015df393 Mon Sep 17 00:00:00 2001 From: moreal Date: Tue, 1 Aug 2023 13:55:48 +0900 Subject: [PATCH] ci(gh-actions): validate GitHub Actions workflows --- .../validate-github-actions-workflows.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/validate-github-actions-workflows.yml diff --git a/.github/workflows/validate-github-actions-workflows.yml b/.github/workflows/validate-github-actions-workflows.yml new file mode 100644 index 000000000..bd0fc58f8 --- /dev/null +++ b/.github/workflows/validate-github-actions-workflows.yml @@ -0,0 +1,18 @@ +name: validate GitHub Actions workflows +on: + push: + paths: + - .github/workflows/* + + pull_request: + paths: + - .github/workflows/* + +jobs: + validate-github-actions-workflows: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: | + bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) + ./actionlint