mirror of
https://github.com/supabase/setup-cli.git
synced 2026-06-27 17:36:57 +00:00
## Summary - Detect Linux musl runners in the v1 action and download the Supabase CLI `.apk` asset for CLI versions `>= 2.99.0`. - Add the extracted `usr/bin` directory to `PATH` for `.apk` archives. - Backport the optional `github-token` input for authenticated `latest` release lookup, because the test matrix hit unauthenticated GitHub API rate limits. - Rebuild `dist/index.js` for the Node action. ## Validation - `npm run format:check` - `npm run lint` - `npm test` - `npm run package` - Local Docker smoke test in `node:20-alpine` with `INPUT_VERSION=2.100.1` - setup-cli-testing workflow: https://github.com/jgoux/setup-cli-testing/actions/runs/26165593808 The external workflow passed Alpine `2.100.1`, Alpine `latest`, and Ubuntu/macOS/Windows with both `2.100.1` and `latest`.
47 lines
970 B
YAML
47 lines
970 B
YAML
name: CLI Start
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
|
schedule:
|
|
# * is a special character in YAML so you have to quote this string
|
|
- cron: '30 1,9 * * *'
|
|
workflow_dispatch:
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
e2e: # make sure the action works on a clean machine without building
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
version:
|
|
- 1.178.2
|
|
- 2.33.0
|
|
- latest
|
|
pg_major:
|
|
- 14
|
|
- 15
|
|
- 17
|
|
exclude:
|
|
- version: 1.178.2
|
|
pg_major: 17
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: ./
|
|
with:
|
|
version: ${{ matrix.version }}
|
|
github-token: ${{ github.token }}
|
|
- run: supabase init
|
|
- run:
|
|
sed -i -E "s|^(major_version) .*|\1 = ${{ matrix.pg_major }}|"
|
|
supabase/config.toml
|
|
- run: supabase start
|