Files
better-auth/.github/workflows/ci.yml
T
Bereket EngidaGitHubcubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
e16a289f9e chore: remove examples and dev folder (#3917)
* chore: remove examples

* chore: add integration tests for Bun and Cloudflare environments

- Introduced integration tests for Bun and Cloudflare, including authentication and database setup.
- Updated pnpm workspace configuration to include integration tests.
- Removed example projects and unnecessary dependencies from pnpm-lock.yaml.
- Added .gitignore files for both Bun and Cloudflare integration tests.
- Created necessary configuration files and schemas for database interactions.
- Updated package.json files to include relevant dependencies for integration testing.

* chore: check for navigtaor

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* await docker

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* await isWSL

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* cloudflare checks

* lockfile

* chore: lint

* only run ci on specefic branches

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-08-10 22:55:29 -07:00

76 lines
2.1 KiB
YAML

name: CI
on:
pull_request:
types:
- opened
- synchronize
push:
branches:
- main
- canary
merge_group: {}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
cache: pnpm
- name: Install
run: pnpm install
- name: Build
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM || github.repository_owner }}
TURBO_REMOTE_ONLY: true
run: pnpm build
- name: Start Docker Containers
run: |
docker compose up -d
# Wait for services to be ready (optional)
sleep 10
- name: Lint
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM || github.repository_owner }}
TURBO_REMOTE_ONLY: true
run: pnpm lint
- name: Test
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM || github.repository_owner }}
run: pnpm test
- name: Typecheck
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM || github.repository_owner }}
TURBO_REMOTE_ONLY: true
run: pnpm typecheck
- name: Stop Docker Containers
run: docker compose down