Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI
on:
pull_request:
Comment on lines +2 to +3

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 PR 설명에 병합 전 검증 추가가 빠져 있음

기존 워크플로의 권한 변경 외에도 PR을 열거나 업데이트하면 테스트와 웹 빌드가 실행됩니다. 병합을 차단할 필수 검사인지는 저장소 설정에서 확인해야 합니다.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

permissions:
contents: read
jobs:
test-build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
with:
node-version: 20
cache: npm
cache-dependency-path: web/package-lock.json
- name: Collector and shorts tests
run: |
python3 -m venv /tmp/tv
/tmp/tv/bin/pip install --quiet pillow
PATH=/tmp/tv/bin:$PATH npm test
- run: npm ci
working-directory: web
- run: npm run build
working-directory: web
20 changes: 12 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
Expand All @@ -22,10 +20,10 @@ jobs:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
ref: main
- uses: actions/setup-node@v7
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
with:
node-version: 20
- name: README 수치 동기화
Expand All @@ -45,10 +43,13 @@ jobs:
git push origin HEAD:main

build:
permissions:
contents: read
pages: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
with:
node-version: 20
cache: npm
Expand All @@ -64,15 +65,18 @@ jobs:
- name: Build (slop-lint 게이트 포함)
run: npm run build
working-directory: web
- uses: actions/upload-pages-artifact@v5
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5
with:
path: web/dist
deploy:
permissions:
pages: write
id-token: write
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v5
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5
8 changes: 5 additions & 3 deletions .github/workflows/fetch-candidates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,22 @@ on:
workflow_dispatch:

permissions:
contents: write
contents: read

concurrency:
group: fetch-candidates
cancel-in-progress: false

jobs:
scan:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
ref: main # detached HEAD 가 아닌 main 브랜치로 체크아웃(푸시 대상)
- uses: actions/setup-node@v7
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
with:
node-version: 20
- name: 콜드스탠바이 fetch 스윕 (새 후보가 있을 때만 queue/ 에 기록)
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/news-refresh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,23 @@ on:
workflow_dispatch:

permissions:
contents: write
actions: write # deploy.yml 을 workflow_dispatch 로 깨우기 위해
contents: read

concurrency:
group: news-refresh
cancel-in-progress: false

jobs:
refresh:
permissions:
contents: write
actions: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
ref: main # detached HEAD 가 아닌 main 브랜치로 체크아웃(푸시 대상)
- uses: actions/setup-node@v7
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
with:
node-version: 20
- name: 뉴스 수집 (바뀐 게 없으면 파일을 쓰지 않는다)
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/watchdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,21 @@ on:
workflow_dispatch:

permissions:
issues: write
contents: read
actions: read # fetch-candidates 실행 결과 조회(진단)

jobs:
check:
permissions:
issues: write
contents: read
actions: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
ref: main
fetch-depth: 0 # 진단: 마지막 루틴 커밋 이후 이력 + 원격 브랜치 전부
- uses: actions/setup-node@v7
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
with:
node-version: 20
- name: Check last_run freshness
Expand Down