-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (35 loc) · 1.41 KB
/
Copy pathvalidate.yml
File metadata and controls
37 lines (35 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: validate
on:
push:
branches: [main]
pull_request:
jobs:
gate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: 문항 품질 게이트
run: node tools/validate.mjs
# 링크 검사(links.yml)와 달리 이쪽은 배포를 막아도 된다. 발행된 RFC 의 절 번호는
# 바뀌지 않으므로 여기서의 실패는 링크가 죽은 것이 아니라 우리 인용이 틀린 것이다.
- name: RFC 절 인용 대조
run: node tools/check-rfc-sections.mjs
- name: 빌드 산출물이 최신인지 확인
run: |
node tools/build.mjs
if ! git diff --quiet -- data/questions.json; then
echo "data/questions.json 이 소스와 다릅니다. 'node tools/build.mjs' 실행 후 커밋하세요."
git diff --stat -- data/questions.json
exit 1
fi
# 확신도 축의 집계(찍어서 맞은 문항, 그것을 뺀 점수, 재도전 대상)는 화면을 끝까지
# 진행해야 나타나는 상태라 손으로는 확인이 번거롭고 그래서 조용히 회귀한다.
- name: 브라우저 준비
run: |
npm i -D playwright@1.62.1 --no-audit --no-fund
npx playwright install chromium --with-deps
- name: 퀴즈 흐름 E2E
run: node tools/e2e.mjs