Add GitHub Actions workflows for approval, labeling, release, and Lig… #7
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: Next.js CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20.x] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run Lint | |
| run: npm run lint | |
| - name: Run Type Check | |
| run: npx tsc --noEmit | |
| - name: Build project | |
| run: npm run build | |
| - name: Bundle Size Check (optional) | |
| run: npm run bundle-size --if-present | |
| - name: Security Audit (high+) | |
| run: npm audit --audit-level=high | |
| - name: Run Tests | |
| run: npm run test --if-present |