name: Pull Request on: pull_request: env: CI: true jobs: build: name: Build - Test runs-on: ubuntu-latest services: postgres: image: postgres ports: - 5432:5432 options: >- --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 env: POSTGRES_HOST_AUTH_METHOD: trust steps: - name: Checkout uses: actions/checkout@v7 with: fetch-depth: 0 - name: Install pnpm uses: pnpm/action-setup@v6 with: run_install: false - name: Setup node uses: actions/setup-node@v7 with: node-version-file: .nvmrc cache: pnpm - name: Install dependencies run: pnpm install --frozen-lockfile - name: Format run: pnpm format - name: Lint run: pnpm lint - name: Build run: pnpm -r build - name: Test with coverage run: pnpm test:coverage - uses: codecov/codecov-action@v7 with: fail_ci_if_error: true env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}