Skip to content

content: 불편함은 전부 제거해야 할 버그일까 #188

content: 불편함은 전부 제거해야 할 버그일까

content: 불편함은 전부 제거해야 할 버그일까 #188

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
# 실패한 실행을 다시 돌리거나 기본 브랜치를 수동으로 검증할 때 사용한다.
workflow_dispatch:
# 같은 브랜치에 새 커밋이 오면 진행 중이던 실행을 취소한다.
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
verify:
name: Lint, typecheck, test, build
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v6
# packageManager 필드(pnpm@11.9.0)에서 버전을 읽으므로 별도 고정이 필요 없다.
- name: Set up pnpm
uses: pnpm/action-setup@v5
# package.json 의 engines 와 같은 메이저를 쓴다.
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: "22"
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm lint
- name: Typecheck
run: pnpm typecheck
- name: Test
run: pnpm test
- name: Build
run: pnpm build
env:
NEXT_PUBLIC_SITE_URL: https://example.invalid
- name: Install test browser
run: pnpm exec playwright install --with-deps chromium
- name: Browser smoke tests
run: pnpm test:e2e
- name: Preserve browser failure traces
if: failure()
uses: actions/upload-artifact@v4
with:
name: browser-test-results
path: test-results/
retention-days: 7