chore(ci): bump codecov/codecov-action from 6 to 7 #75
Workflow file for this run
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, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:15 | |
| env: | |
| POSTGRES_DB: test_db | |
| POSTGRES_USER: test_user | |
| POSTGRES_PASSWORD: test_pass | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 5432:5432 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: '22' | |
| cache: 'pnpm' | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm ls --depth=0 | |
| - run: pnpm run lint | |
| - run: pnpm run typecheck | |
| - run: pnpm audit --audit-level moderate | |
| - run: pnpm run test:coverage | |
| env: | |
| DATABASE_URL: postgresql://test_user:test_pass@localhost:5432/test_db | |
| MASTER_KEY: WVdWaFkyVmtaR1ZqTTJGbVlXUmxZek01WVdReQ== | |
| AGENT_JWT_SECRET: ci-agent-jwt-secret-32-bytes-long!! | |
| ADMIN_API_KEY: ci-admin-api-key-secret-32b!! | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@v7 | |
| with: | |
| files: ./packages/server/coverage/lcov.info | |
| fail_ci_if_error: false | |
| - name: Upload coverage artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: coverage-report | |
| path: packages/server/coverage/ | |
| build: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: docker/setup-buildx-action@v4 | |
| - uses: docker/login-action@v4 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: docker/build-push-action@v7 | |
| with: | |
| push: ${{ github.ref == 'refs/heads/main' }} | |
| tags: ghcr.io/reaatech/agent-auth-proxy:${{ github.sha }} | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max |