Skip to content

feat: Initialize Next.js project with CI/CD, testing, linting, format… #1

feat: Initialize Next.js project with CI/CD, testing, linting, format…

feat: Initialize Next.js project with CI/CD, testing, linting, format… #1

Workflow file for this run

# name: CI
# on:
# push:
# branches: [main, develop]
# pull_request:
# branches: [main, develop]
# jobs:
# lint-and-test:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# node-version: [20.x]
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# - name: Install pnpm
# uses: pnpm/action-setup@v4
# with:
# version: 10
# - name: Setup Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v4
# with:
# node-version: ${{ matrix.node-version }}
# cache: "pnpm"
# - name: Install dependencies
# run: pnpm install --frozen-lockfile
# - name: Run TypeScript type check
# run: pnpm type-check
# - name: Run ESLint
# run: pnpm lint
# - name: Run Prettier check
# run: pnpm format:check
# - name: Run tests with coverage
# run: pnpm test:coverage
# - name: Build application
# run: pnpm build
# - name: Upload coverage reports
# uses: codecov/codecov-action@v4
# with:
# file: ./coverage/coverage-final.json
# fail_ci_if_error: false