From d4480fefa145d9ff273955ae5d037d5a4e64375a Mon Sep 17 00:00:00 2001 From: per1234 Date: Sun, 25 Oct 2020 20:56:49 -0700 Subject: [PATCH] Add CI workflow to lint configuration files Currently used to validate the GitHub Actions workflows. --- .github/workflows/lint-config.yml | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/lint-config.yml diff --git a/.github/workflows/lint-config.yml b/.github/workflows/lint-config.yml new file mode 100644 index 000000000..a33d00ad3 --- /dev/null +++ b/.github/workflows/lint-config.yml @@ -0,0 +1,32 @@ +name: Lint configuration files + +on: + push: + paths: + - ".github/workflows/lint-config.yml" + - "Taskfile.yml" + - ".github/workflows/*.yml" + pull_request: + paths: + - ".github/workflows/lint-config.yml" + - "Taskfile.yml" + - ".github/workflows/*.yml" + schedule: + # Run every Tuesday at 03:00 UTC to catch breakage caused by changes to the GitHub Actions workflow schema + - cron: "0 3 * * 2" + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout local repository + uses: actions/checkout@v2 + + - name: Install Taskfile + uses: arduino/actions/setup-taskfile@master + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + version: 3.x + + - name: Lint configuration files + run: task config:lint