chore(deps): update dependency @typescript/native-preview to v7.0.0-dev.20260131.1 #67
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'] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| api-tests: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| services: | |
| postgres: | |
| image: postgres:17 | |
| env: | |
| POSTGRES_USER: devtable | |
| POSTGRES_PASSWORD: devtable | |
| POSTGRES_DB: devtable_test | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 5432:5432 | |
| redis: | |
| image: redis:7 | |
| options: >- | |
| --health-cmd "redis-cli ping" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 6379:6379 | |
| env: | |
| DB_HOST: localhost | |
| DB_PORT: 5432 | |
| DB_USERNAME: devtable | |
| DB_PASSWORD: devtable | |
| DB_DATABASE: devtable_test | |
| INTEGRATION_TEST_PG_URL: postgresql://devtable:devtable@localhost:5432/devtable_test_integration | |
| END_2_END_TEST_PG_URL: postgresql://devtable:devtable@localhost:5432/devtable_test_e2e | |
| REDIS_URL: redis://localhost:6379 | |
| SECRET_KEY: test-secret-key-for-ci | |
| NODE_ENV: test | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'yarn' | |
| - name: Cache Nx | |
| uses: actions/cache@v4 | |
| with: | |
| path: .nx | |
| key: ${{ runner.os }}-nx-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nx- | |
| - name: Install dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Create test databases | |
| run: | | |
| PGPASSWORD=devtable psql -h localhost -U devtable -d devtable_test -c "CREATE DATABASE devtable_test_integration;" | |
| PGPASSWORD=devtable psql -h localhost -U devtable -d devtable_test -c "CREATE DATABASE devtable_test_e2e;" | |
| - uses: nrwl/nx-set-shas@v3 | |
| - name: Run API unit tests | |
| working-directory: ./api | |
| run: yarn test:u | |
| - name: Run API integration tests | |
| working-directory: ./api | |
| run: yarn test:i | |
| - name: Run API e2e tests | |
| working-directory: ./api | |
| run: yarn test:e2e | |
| - name: Upload coverage reports | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| files: ./api/coverage/*/lcov.info | |
| flags: api | |
| fail_ci_if_error: false |