dependabot[bot] 00444eea07 chore(deps): bump ruby/setup-ruby from 1.308.0 to 1.316.0 in the actions-minor-patch group across 1 directory (#440)
Bumps the actions-minor-patch group with 1 update in the / directory:
[ruby/setup-ruby](https://github.com/ruby/setup-ruby).

Updates `ruby/setup-ruby` from 1.308.0 to 1.316.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/ruby/setup-ruby/releases">ruby/setup-ruby's
releases</a>.</em></p>
<blockquote>
<h2>v1.316.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Update CRuby releases on Windows by <a
href="https://github.com/ruby-builder-bot"><code>@​ruby-builder-bot</code></a>
in <a
href="https://redirect.github.com/ruby/setup-ruby/pull/926">ruby/setup-ruby#926</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/ruby/setup-ruby/compare/v1.315.0...v1.316.0">https://github.com/ruby/setup-ruby/compare/v1.315.0...v1.316.0</a></p>
<h2>v1.315.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Bump actions/checkout from 6 to 7 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/ruby/setup-ruby/pull/924">ruby/setup-ruby#924</a></li>
<li>Add ruby-3.4.10 by <a
href="https://github.com/ruby-builder-bot"><code>@​ruby-builder-bot</code></a>
in <a
href="https://redirect.github.com/ruby/setup-ruby/pull/925">ruby/setup-ruby#925</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/ruby/setup-ruby/compare/v1.314.0...v1.315.0">https://github.com/ruby/setup-ruby/compare/v1.314.0...v1.315.0</a></p>
<h2>v1.314.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Add support for ubuntu-26.04 and ubuntu-26.04-arm by <a
href="https://github.com/eregon"><code>@​eregon</code></a> in <a
href="https://redirect.github.com/ruby/setup-ruby/pull/923">ruby/setup-ruby#923</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/ruby/setup-ruby/compare/v1.313.0...v1.314.0">https://github.com/ruby/setup-ruby/compare/v1.313.0...v1.314.0</a></p>
<h2>v1.313.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Add jruby-10.0.6.0 by <a
href="https://github.com/ruby-builder-bot"><code>@​ruby-builder-bot</code></a>
in <a
href="https://redirect.github.com/ruby/setup-ruby/pull/921">ruby/setup-ruby#921</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/ruby/setup-ruby/compare/v1.312.0...v1.313.0">https://github.com/ruby/setup-ruby/compare/v1.312.0...v1.313.0</a></p>
<h2>v1.312.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Use BUNDLE_LOCKFILE when detecting the lockfile by <a
href="https://github.com/Thomascountz"><code>@​Thomascountz</code></a>
in <a
href="https://redirect.github.com/ruby/setup-ruby/pull/919">ruby/setup-ruby#919</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/Thomascountz"><code>@​Thomascountz</code></a>
made their first contribution in <a
href="https://redirect.github.com/ruby/setup-ruby/pull/919">ruby/setup-ruby#919</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/ruby/setup-ruby/compare/v1.311.0...v1.312.0">https://github.com/ruby/setup-ruby/compare/v1.311.0...v1.312.0</a></p>
<h2>v1.311.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Add jruby-9.4.15.0 by <a
href="https://github.com/ruby-builder-bot"><code>@​ruby-builder-bot</code></a>
in <a
href="https://redirect.github.com/ruby/setup-ruby/pull/920">ruby/setup-ruby#920</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/ruby/setup-ruby/compare/v1.310.0...v1.311.0">https://github.com/ruby/setup-ruby/compare/v1.310.0...v1.311.0</a></p>
<h2>v1.310.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Add ruby-4.0.5 by <a
href="https://github.com/ruby-builder-bot"><code>@​ruby-builder-bot</code></a>
in <a
href="https://redirect.github.com/ruby/setup-ruby/pull/918">ruby/setup-ruby#918</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="d45b1a4e94"><code>d45b1a4</code></a>
Update CRuby releases on Windows</li>
<li><a
href="0dafeac902"><code>0dafeac</code></a>
Add ruby-3.4.10</li>
<li><a
href="bf35c27edc"><code>bf35c27</code></a>
Bump actions/checkout from 6 to 7</li>
<li><a
href="9eb537ca03"><code>9eb537c</code></a>
Add support for ubuntu-26.04 and ubuntu-26.04-arm</li>
<li><a
href="e1a3b100ca"><code>e1a3b10</code></a>
Improve versions-strings-for-builder.rb</li>
<li><a
href="0df5288f06"><code>0df5288</code></a>
Remove <code>gem install sassc</code> on Windows JRuby</li>
<li><a
href="89f90524b8"><code>89f9052</code></a>
Add jruby-10.0.6.0</li>
<li><a
href="12fd324f1d"><code>12fd324</code></a>
Use BUNDLE_LOCKFILE when detecting the lockfile</li>
<li><a
href="a99ac84464"><code>a99ac84</code></a>
Add jruby-9.4.15.0</li>
<li><a
href="afeafc3d1a"><code>afeafc3</code></a>
Add ruby-4.0.5</li>
<li>Additional commits viewable in <a
href="97ecb7b512...d45b1a4e94">compare
view</a></li>
</ul>
</details>
<br />

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-07 13:17:46 +02:00
2026-07-03 12:02:44 +00:00
2026-04-03 17:51:37 +02:00
2026-04-03 17:51:37 +02:00
2026-04-03 17:51:37 +02:00
2026-07-03 12:02:44 +00:00
2022-08-03 21:32:01 +08:00
2026-07-03 12:02:44 +00:00
2026-04-03 17:51:37 +02:00

⚙️ Supabase CLI Action

CI E2E CodeQL

About

This composite action sets up the Supabase CLI, supabase, on GitHub's hosted Actions runners. Other CI runners like Bitbucket and GitLab are supported via their respective pipelines.

This action can be run on ubuntu-latest, windows-latest, and macos-latest GitHub Actions runners, and will install and expose a specified version of the supabase CLI on the runner environment.

Usage

Setup the supabase CLI:

steps:
  - uses: supabase/setup-cli@v3

If version is omitted, the action checks the repository root for bun.lock, pnpm-lock.yaml, or package-lock.json and installs the declared supabase package version through npm. If the lockfile includes package integrity metadata, the action verifies it against the npm registry before installing. If no supported lockfile is present, it falls back to latest.

The action uses an existing Node.js/npm runtime when one is already available, and requires Node.js 20 or newer. On non-musl runners without Node.js or npm, it provisions them internally. Runners must be able to reach the npm registry to install the CLI package.

When running in Alpine or other Linux musl containers, the action uses Alpine's nodejs and npm packages instead of actions/setup-node, because the standard Node.js runner binaries target glibc. Root containers can have missing runtime packages installed automatically. Non-root containers must include Node.js 20+ and the runtime packages in the image before the action runs:

FROM alpine:3.20

RUN apk add --no-cache libstdc++ libgcc nodejs npm

USER 1000:1000

A fixed npm-published version, latest, or beta of the supabase CLI can be installed:

steps:
  - uses: supabase/setup-cli@v3
    with:
      version: 2.84.2
steps:
  - uses: supabase/setup-cli@v3
    with:
      version: beta

Run supabase db start to execute all migrations on a fresh database:

steps:
  - uses: supabase/setup-cli@v3
    with:
      version: latest
  - run: supabase init
  - run: supabase db start

Since Supabase CLI relies on Docker Engine API, additional setup may be required on Windows and macOS runners.

Inputs

The action supports the following inputs:

Name Type Description Default Required
version String Supabase CLI latest, beta, or fixed version published to npm Root lockfile version or latest false

Advanced Usage

Check generated TypeScript types are up-to-date with Postgres schema:

steps:
  - uses: supabase/setup-cli@v3
  - run: supabase init
  - run: supabase db start
  - name: Verify generated types match Postgres schema
    run: |
      supabase gen types typescript --local > schema.gen.ts
      if ! git diff --ignore-space-at-eol --exit-code --quiet schema.gen.ts; then
        echo "Detected uncommitted changes after build. See status below:"
        git diff
        exit 1
      fi

Release job to push schema changes to a Supabase project:

env:
  SUPABASE_ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
  SUPABASE_DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
  # Retrieve <project-id> from dashboard url: https://app.supabase.com/project/<project-id>
  PROJECT_ID: <project-id>

steps:
  - uses: supabase/setup-cli@v3
  - run: supabase link --project-ref $PROJECT_ID
  - run: supabase db push

Export local Supabase env vars for app tests:

steps:
  - uses: supabase/setup-cli@v3
  - run: supabase init
  - run: supabase start
  - name: Export local Supabase env vars
    run: |
      # Customize the variable names as needed for your app.
      supabase status -o env \
        --override-name api.url=SUPABASE_URL \
        --override-name auth.service_role_key=SUPABASE_SERVICE_ROLE_KEY \
        >> .env.test
  - run: bun test

Develop

After you've cloned the repository to your local machine or codespace, you'll need to perform a few setup steps before you can work on the action.

Note

You'll need a recent version of Bun for local development. This repository includes a .bun-version file for tools that can auto-switch Bun versions.

  1. 🛠️ Install the dependencies

    bun install
    
  2. Run the tests

    bun test
    
  3. 🔍 Run the full local CI suite

    bun run ci
    

Publish

  1. Create a new GitHub release
  2. Rebase v3 branch on main

Your action is now published! 🚀

See the versioning documentation

Validate

Validate changes by exercising the action from a workflow in this repository (see ci.yml and e2e.yml).

steps:
  - uses: ./
    with:
      version: latest

The CI workflow provides fast smoke coverage across GitHub-hosted runners, and the E2E workflow verifies supabase init and supabase start against supported Postgres versions. See the actions tab for recent runs.

Description
Supabase CLI Setup Action
Readme MIT 6 MiB
Languages
TypeScript 100%