Skip to content

Add GitHub Actions workflows for approval, labeling, release, and Lig… #7

Add GitHub Actions workflows for approval, labeling, release, and Lig…

Add GitHub Actions workflows for approval, labeling, release, and Lig… #7

Workflow file for this run

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