chore(deps): update dependency @antfu/eslint-config to v2.22.2 #1127
Workflow file for this run
This file contains 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: Run tests | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
env: | |
DENO_DIR: my_cache_directory | |
jobs: | |
test_base_sql: | |
runs-on: ubuntu-latest | |
if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') }} | |
name: "Run test" | |
steps: | |
- name: Cache Deno dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ${{ env.DENO_DIR }} | |
key: my_cache_key | |
- name: "Checkout capgo" | |
uses: actions/checkout@v4 | |
- name: Install Supabase CLI | |
uses: supabase/setup-cli@v1 | |
with: | |
version: 1.178.2 | |
- name: Set env PROD | |
if: ${{ !contains(github.ref, '-alpha.') }} | |
run: echo "SUPABASE_DB_PASSWORD=${{ secrets.SUPABASE_DB_PASS }}" >> $GITHUB_ENV | |
- name: Set env ALPHA | |
if: ${{ contains(github.ref, '-alpha.') }} | |
run: echo "SUPABASE_DB_PASSWORD=${{ secrets.SUPABASE_DB_PASS_ALPHA }}" >> $GITHUB_ENV | |
- name: 🍜 Prepare Supabase PROD | |
run: supabase link --project-ref xvwzpoazmxkqosrdewyv | |
if: ${{ !contains(github.ref, '-alpha.') }} | |
env: | |
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_TOKEN }} | |
- name: 🍜 Prepare Supabase ALPHA | |
run: supabase link --project-ref aucsybvnhavogdmzwtcw | |
if: ${{ contains(github.ref, '-alpha.') }} | |
env: | |
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_TOKEN }} | |
- name: Run Supabase Start | |
run: supabase start -x imgproxy,studio,realtime,studio,logflare,vector,inbucket | |
- run: supabase test db | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: "Start minio" | |
run: npm run minio:start && npm run minio:seed | |
- run: deno test --allow-all supabase/functions/tests/* --env=supabase/.env.test --import-map=supabase/functions/import_map.json | |
- name: Setup bun | |
uses: oven-sh/[email protected] | |
with: | |
bun-version: latest | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: Install dependencies | |
run: bun install | |
- name: CLI test | |
run: bun run test | |