Repository navigation
premium: promo codes, 50OFF for 50% off every term #385
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 | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| services: | |
| redis: | |
| image: redis:7-alpine | |
| ports: | |
| - 6379:6379 | |
| options: >- | |
| --health-cmd "redis-cli ping" | |
| --health-interval 5s | |
| --health-timeout 5s | |
| --health-retries 10 | |
| postgres: | |
| image: postgres:17-alpine | |
| env: | |
| POSTGRES_HOST_AUTH_METHOD: trust | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 5s | |
| --health-timeout 5s | |
| --health-retries 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.4.0 | |
| - run: bun install | |
| - run: bun run lint | |
| - run: python3 test/police-source-discovery.test.py | |
| - run: bun test | |
| env: | |
| DATABASE_URL: postgres://unused:unused@localhost:5432/unused | |
| MIGRATION_TEST_DATABASE_URL: postgres://postgres@localhost:5432/postgres | |
| REDIS_TEST_URL: redis://localhost:6379 | |
| SITE_URL: http://localhost:3000 |