add env tests #147
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: CI (Test & Build) | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test-and-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Run linter/typecheck | |
| run: bunx tsc -p tsconfig.json --noEmit | |
| - name: Run tests | |
| run: bun test tests/cli.test.ts src/ | |
| - name: Install Playwright Browsers | |
| run: npx playwright install --with-deps chromium | |
| - name: Run Playwright E2E tests | |
| run: npx playwright test | |
| - name: Build CLI (Dry Run) | |
| run: bun build cli/index.ts --compile --outfile dist/streamdrop-cli | |
| - name: Build Server (Dry Run) | |
| run: bun build src/server.ts --compile --outfile dist/streamdrop-server |