Chore: Clean-up unused/unecessary deps and add knip integration #3
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: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| unit-tests: | |
| name: Unit | |
| runs-on: ubuntu-latest | |
| # unit tests don't need environment variables - they test pure functions | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: "1.2.20" | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Run unit tests | |
| run: bun test:unit | |
| integration-tests: | |
| name: Integration | |
| runs-on: ubuntu-latest | |
| needs: unit-tests # run after unit tests pass | |
| # these are placeholders which is fine for integration tests for now | |
| # TODO: remove these and set-up an actual integration test suite environment | |
| env: | |
| KV_URL: redis://localhost:6379 | |
| KV_REST_API_READ_ONLY_TOKEN: test-read-only-token | |
| KV_REST_API_TOKEN: test-api-token | |
| KV_REST_API_URL: https://test-kv-api.example.com | |
| SUPABASE_SERVICE_ROLE_KEY: test-service-role-key | |
| INFRA_API_URL: https://api.e2b-test.dev | |
| BILLING_API_URL: https://billing.e2b-test.dev | |
| NEXT_PUBLIC_E2B_DOMAIN: e2b-test.dev | |
| NEXT_PUBLIC_POSTHOG_KEY: test-posthog-key | |
| NEXT_PUBLIC_SUPABASE_URL: https://test-supabase-url.supabase.co | |
| NEXT_PUBLIC_SUPABASE_ANON_KEY: test-supabase-anon-key | |
| NEXT_PUBLIC_STRIPE_BILLING_URL: https://test-stripe-billing.example.com | |
| NEXT_PUBLIC_SCAN: 0 | |
| NEXT_PUBLIC_MOCK_DATA: 1 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: 1.2.20 | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Run integration tests | |
| run: bun test:integration |