fix: prevent channel deletion when unsetting device channel #3419
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 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- renovate/** | |
tags: | |
- '*' | |
pull_request: | |
env: | |
DENO_DIR: my_cache_directory | |
jobs: | |
test_base_sql: | |
runs-on: ubuntu-latest | |
name: "Run tests" | |
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: 2.9.6 | |
- name: Show Supabase CLI version | |
run: supabase --version | |
- name: Run Supabase Start | |
run: supabase start -x imgproxy,studio,realtime,studio,logflare,vector,inbucket | |
- name: Run Supabase Test DB | |
run: supabase test db | |
- name: Setup bun | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- name: Show bun version | |
run: bun --version | |
- name: Show capgo version | |
run: bunx @capgo/cli@latest -v | |
- name: Install dependencies | |
run: bun install | |
- uses: JarvusInnovations/background-action@v1 | |
name: Bootstrap Edge server | |
with: | |
run: supabase functions serve & | |
wait-on: | | |
http-get://127.0.0.1:54321/functions/v1/ok | |
# IMPORTANT: to use environment variables in wait-on, you must use this form: ${{ env.VAR }} | |
# See wait-on section below for all resource types and prefixes | |
tail: stderr,stdout # true = stderr,stdout | |
# This will allow you to monitor the progress live | |
log-output-resume: stderr,stdout | |
# Eliminates previously output stderr log entries from post-run output | |
wait-for: 1m | |
log-output: stderr,stdout # same as true | |
log-output-if: true | |
# failure = exit-early or timeout | |
working-directory: . | |
- name: Run tests | |
run: bun run test:all | |