ci: smoke-test OpenAPI examples against each tier after deploy #35
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: Lint workflows (actionlint) | |
| # Lints the GitHub Actions workflow files themselves — reusable-workflow input matching, | |
| # expression syntax, and shellcheck on `run:` scripts. Kept separate from ci.yml (the Python | |
| # suite) so the two stay independently path-filtered: this runs only when a workflow changes. | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - ".github/workflows/**" | |
| pull_request: | |
| paths: | |
| - ".github/workflows/**" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: actionlint-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| ACTIONLINT_VERSION: "1.7.12" | |
| # sha256 of actionlint_<version>_linux_amd64.tar.gz from the release's checksums.txt | |
| ACTIONLINT_SHA256: "8aca8db96f1b94770f1b0d72b6dddcb1ebb8123cb3712530b08cc387b349a3d8" | |
| jobs: | |
| actionlint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install actionlint (pinned + checksum-verified) | |
| run: | | |
| set -euo pipefail | |
| TARBALL="actionlint_${ACTIONLINT_VERSION}_linux_amd64.tar.gz" | |
| curl -fsSLO "https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VERSION}/${TARBALL}" | |
| echo "${ACTIONLINT_SHA256} ${TARBALL}" | sha256sum -c - | |
| tar -xzf "$TARBALL" actionlint | |
| ./actionlint -version | |
| - name: Run actionlint | |
| run: | | |
| # ubuntu-latest ships shellcheck, so actionlint's `run:` script checks apply too, | |
| # matching local runs. | |
| ./actionlint -color |