chore(deps): Bump the dev-dependencies group with 5 updates #593
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 - Build and Test | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| jobs: | |
| lint-test-build: | |
| name: Lint, Test, and Build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20.x] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Cache Next.js build | |
| uses: actions/cache@v5 | |
| with: | |
| path: .next/cache | |
| key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/*.ts', '**/*.tsx') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}- | |
| - name: Run linter | |
| run: pnpm lint | |
| - name: Run unit tests | |
| run: pnpm test:ci --reporter=verbose | |
| env: | |
| NODE_ENV: test | |
| - name: Build application | |
| run: pnpm build | |
| env: | |
| NEXT_TELEMETRY_DISABLED: 1 | |
| - name: Check build output | |
| run: | | |
| if [ ! -d ".next" ]; then | |
| echo "Build failed - .next directory not found" | |
| exit 1 | |
| fi | |
| echo "Build successful" |