Repository navigation
Public links point to the Loom documentation site #1189
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: workflow lint | |
| on: | |
| push: | |
| branches: [main, "release/**"] | |
| pull_request: | |
| branches: [main, "release/**"] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.sha }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| actionlint: | |
| name: workflow syntax and expressions | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Install actionlint | |
| working-directory: ${{ runner.temp }} | |
| run: | | |
| curl --fail --silent --show-error --location --proto '=https' --tlsv1.2 \ | |
| https://github.com/rhysd/actionlint/releases/download/v1.7.12/actionlint_1.7.12_linux_amd64.tar.gz \ | |
| --output actionlint.tar.gz | |
| echo '8aca8db96f1b94770f1b0d72b6dddcb1ebb8123cb3712530b08cc387b349a3d8 actionlint.tar.gz' | sha256sum --check --strict | |
| tar -xzf actionlint.tar.gz actionlint | |
| - name: Install ShellCheck | |
| working-directory: ${{ runner.temp }} | |
| run: | | |
| curl --fail --silent --show-error --location --proto '=https' --tlsv1.2 \ | |
| https://github.com/koalaman/shellcheck/releases/download/v0.11.0/shellcheck-v0.11.0.linux.x86_64.tar.xz \ | |
| --output shellcheck.tar.xz | |
| echo '8c3be12b05d5c177a04c29e3c78ce89ac86f1595681cab149b65b97c4e227198 shellcheck.tar.xz' | sha256sum --check --strict | |
| tar -xJf shellcheck.tar.xz --strip-components=1 shellcheck-v0.11.0/shellcheck | |
| - name: Check every workflow | |
| env: | |
| # Reject shell errors and warnings without imposing style diagnostics. | |
| SHELLCHECK_OPTS: --severity=warning | |
| run: | | |
| test -x "$RUNNER_TEMP/shellcheck" | |
| "$RUNNER_TEMP/actionlint" -color -shellcheck="$RUNNER_TEMP/shellcheck" -pyflakes= |