Files
cozsweet-frontend-nextjs/.github/workflows/ci.yml
T
2026-07-02 13:17:21 +08:00

50 lines
878 B
YAML

name: CI
on:
pull_request:
push:
branches:
- dev
- main
- test
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
name: Lint, Test, Build
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_APP_ENV: test
NEXT_TELEMETRY_DISABLED: "1"
SENTRY_UPLOAD_SOURCEMAPS: "0"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.30.3
- 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
run: pnpm lint
- name: Test
run: pnpm test
- name: Build
run: pnpm build