From d40a9742c0f947277068d2837a512d389d498f5a Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Fri, 13 Jan 2023 10:21:56 -0700 Subject: [PATCH] feat(ci): add lint-actions step to build.yaml (#5957) * feat(ci): add lint-actions step to build.yaml This adds a new job to the Build CI pipeline to lint our GitHub Actions. By doing this, we can prevent typos from slipping in. Fixes #5776 * fix: disable shellcheck in actionlint I don't think we want to enable this for now. * fix: ignore set-output warnings for now It's deprecated but there isn't a reason to move away from using it yet. --- .github/workflows/build.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 5bf628294..36ede441e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -139,6 +139,18 @@ jobs: if: steps.changed-files.outputs.any_changed == 'true' run: yarn lint:ts + lint-actions: + name: Lint GitHub Actions + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v3 + - name: Check workflow files + run: | + bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/7fdc9630cc360ea1a469eed64ac6d78caeda1234/scripts/download-actionlint.bash) + ./actionlint -color -shellcheck= -ignore "set-output" + shell: bash + test-unit: name: Run unit tests runs-on: ubuntu-20.04