chore(ci): bump actions/checkout from 4 to 6 #15
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
| # Z-Image - CI Pipeline | |
| # | |
| # Runs on every push and pull request | |
| # - Lint and format check | |
| # - Type check | |
| # - Build all packages | |
| # - Run tests with coverage | |
| name: CI | |
| on: | |
| push: | |
| branches: [main, dev] | |
| pull_request: | |
| branches: [main, dev] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| ci: | |
| name: Lint, Build & Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Lint & Format check | |
| run: pnpm check | |
| - name: Build shared package | |
| run: pnpm build:shared | |
| - name: Build API | |
| run: pnpm build:api | |
| - name: Build Web | |
| run: pnpm build:web | |
| - name: Run tests with coverage | |
| run: pnpm test:coverage | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v4 | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./apps/api/coverage/coverage-final.json,./apps/web/coverage/coverage-final.json | |
| fail_ci_if_error: false | |
| typecheck: | |
| name: Type Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build shared (dependency) | |
| run: pnpm build:shared | |
| - name: Type check | |
| run: pnpm -r exec tsc --noEmit |