diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 219b31e..0f02c0d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,3 +28,19 @@ jobs: - name: Run tests run: npm test if: hashFiles('package.json') != '' + + lint-workflows: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + + - name: Download and verify actionlint + run: | + curl -fsSL -o actionlint.tar.gz \ + https://github.com/rhysd/actionlint/releases/download/v1.7.12/actionlint_1.7.12_linux_amd64.tar.gz + echo "8aca8db96f1b94770f1b0d72b6dddcb1ebb8123cb3712530b08cc387b349a3d8 actionlint.tar.gz" | sha256sum -c - + tar -xzf actionlint.tar.gz actionlint + + - name: Lint GitHub Actions workflows + run: ./actionlint