mirror of
https://github.com/supabase/supabase.git
synced 2026-05-06 22:18:00 +08:00
35 lines
925 B
YAML
35 lines
925 B
YAML
name: Self-Host Tests Smoke
|
|
|
|
on:
|
|
pull_request:
|
|
branches: ['master']
|
|
paths:
|
|
- 'docker/**/*'
|
|
|
|
# Cancel old builds on new commit for same workflow + branch/PR
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: blacksmith-4vcpu-ubuntu-2404
|
|
|
|
steps:
|
|
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
|
|
with:
|
|
sparse-checkout: |
|
|
docker/
|
|
- name: Run docker-compose up
|
|
shell: bash
|
|
# Ensure all services can be started and healthy with default config
|
|
run: |
|
|
set -euo pipefail
|
|
cd docker
|
|
cp .env.example .env
|
|
yq -i '.services.supavisor.environment.RLIMIT_NOFILE=1024' docker-compose.yml
|
|
docker compose up --quiet-pull --wait --wait-timeout 180
|