Repository navigation
test(thetvdb): pin the clock so the fixture token cannot expire (#191) #401
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 |