fix: batch the member removals and show loading state ⏳ #1759
Workflow file for this run
This file contains hidden or 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: Continuous Integration | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
ci: | |
name: CI | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_DB: oyster | |
POSTGRES_PASSWORD: oyster | |
POSTGRES_USER: oyster | |
ports: | |
- 5432:5432 | |
options: >- | |
--health-cmd pg_isready --health-interval 10s --health-timeout 5s | |
--health-retries 5 | |
redis: | |
image: redis | |
ports: | |
- 6379:6379 | |
options: >- | |
--health-cmd "redis-cli ping" --health-interval 10s --health-timeout | |
5s --health-retries 5 | |
env: | |
BASE_SHA: ${{ github.event.pull_request.base.sha }} | |
DATABASE_URL: postgres://oyster:oyster@localhost:5432/oyster | |
REDIS_URL: redis://localhost:6379 | |
steps: | |
- name: Checkout repository code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Cache Turborepo setup | |
uses: actions/cache@v4 | |
with: | |
# When running turbo commands, we use `.turbo` as the cache directory. | |
# See the root `package.json` for reference. | |
path: .turbo | |
key: ${{ runner.os }}-turbo-${{ github.sha }} | |
# This is how GitHub Actions restores the cache. Because we only | |
# the prefix of the key (and not the `github.sha`), this will allow | |
# us to hit the cache on any CI runs on commit on any branch. | |
restore-keys: | | |
${{ runner.os }}-turbo- | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
- name: Setup Bun | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version-file: package.json | |
- name: Install dependencies | |
run: bun install --frozen-lockfile | |
- name: Run database migrations and generate types | |
run: bun db:migrate | |
- name: Lint | |
run: bun lint --filter=[$BASE_SHA] | |
- name: Check types | |
run: bun type-check --filter=[$BASE_SHA] | |
- name: Build all packages and applications | |
run: bun run build --filter=[$BASE_SHA] | |
- name: Run tests | |
run: bun run test --filter=[$BASE_SHA] |