organize streaming engine and plugins #27
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: Server CI | |
on: | |
push: | |
branches: [main] | |
# paths: | |
# - 'server/**' | |
pull_request: | |
branches: [main] | |
paths: | |
- 'packages/server/**' | |
jobs: | |
test-server: | |
runs-on: ubuntu-latest | |
# env: | |
# DATABASE_TEST_URL: ${{ secrets.DATABASE_TEST_URL }} | |
# STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }} | |
# STRIPE_PUBLISHABLE_KEY: ${{ secrets.STRIPE_PUBLISHABLE_KEY }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: Install server dependencies | |
run: cd packages/server && bun install | |
- name: Run unit tests | |
run: | | |
echo "🧪 Running Unit Tests..." | |
cd packages/server && bun run test | |
# - name: Run E2E tests | |
# run: | | |
# echo "🔄 Running E2E Tests..." | |
# cd server && bun run test:e2e | |
# deploy: | |
# needs: [test-server] | |
# runs-on: ubuntu-latest | |
# if: github.ref == 'refs/heads/main' | |
# steps: | |
# - name: Deploy application | |
# run: echo "Add your deployment steps here" |