A GitHub Action that installs bqvalid — a
SQL validator for BigQuery standard SQL — and adds it to PATH so later steps can
run bqvalid directly.
- uses: hirosassa/setup-bqvalid@v1
- run: bqvalid path/to/queries/**/*.sql- uses: hirosassa/setup-bqvalid@v1
with:
version: 0.3.0
- run: bqvalid path/to/queries/**/*.sql| Name | Required | Default | Description |
|---|---|---|---|
version |
no | latest |
Version of bqvalid to install. Accepts 0.3.0, v0.3.0, or latest. |
github-token |
no | ${{ github.token }} |
Token used to query the GitHub API when resolving the latest release. |
| Name | Description |
|---|---|
version |
The resolved bqvalid version that was installed (without leading v). |
- uses: hirosassa/setup-bqvalid@v1
id: bqvalid
- run: echo "Installed bqvalid ${{ steps.bqvalid.outputs.version }}"bqvalid ships prebuilt binaries for the following runner platforms:
| Runner OS | Architecture | Supported |
|---|---|---|
| Linux | x86_64 | ✅ |
| macOS | x86_64 | ✅ |
| macOS | arm64 | ✅ |
| Windows | x86_64 | ✅ |
Other combinations (for example Linux arm64) are not published upstream and the action fails with a clear error on those runners.