This action downloads and installs the Supabase CLI supabase binary into the PATH of a GitHub Actions runner.
It was also planned to implement caching for the required docker images. However, this is currently disabled by default as it takes longer than just redownloading the images every time.
name: Check migrations
on:
push:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Setup Supabase CLI
uses: bickoSiTiEff/setup-supabase-action@v1.0.0
with:
version: 1.4.6
- name: Start project
run: supabase start
- name: Stop project
run: supabase stopRequired:
version: The version of the CLI to install. Thevversion prefix should not be included. Example:version: 1.4.6
Optional:
architecture: The architecture of the server this action is running on. Currently there are onlyamd64andarm64binaries available. The default isamd64use-dockerhub: If this is set totruethen an environment variable will be set to use Docker Hub instead of ECR. There are currently rate-limiting issues with using ECR in GitHub Actions. The default istrue.enable-binary-cache: If this is set totruethen the downloaded supabase binary will be cached usingactions/cache. The default istrue.enable-docker-cacheIf this is set totruethen the downloaded docker images will be cached usingactions/cache. This is currently very inefficient so the default isfalse.