BOM 파일을 열기만 해도 고쳐 쓰던 것을 고친다 #55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| # 저장소가 스스로 정의한 검사를 **누군가는 돌려야 한다.** | |
| # | |
| # 지금까지 워크플로는 릴리스 하나뿐이었고 v* 태그에만 걸렸다. 그래서 685개 테스트와 | |
| # `npm run typecheck` 가 있는데도 push·PR 에서는 아무것도 돌지 않았고, 엄격 설정으로 | |
| # 따로 세운 `src/engine/tsconfig.json` 검사가 25줄 실패한 채 조용히 남아 있었다. | |
| # 아무도 안 보는 검사는 있으나 마나다. | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: ide/package-lock.json | |
| - name: Install dependencies | |
| working-directory: ide | |
| run: npm ci | |
| # 두 단계다: 앱 전체(느슨) + src/engine 의 엄격한 섬(strict·noUncheckedIndexedAccess). | |
| # 두 번째가 이 저장소가 일부러 만든 안전망이라 반드시 같이 돈다. | |
| - name: Typecheck | |
| working-directory: ide | |
| run: npm run typecheck | |
| - name: Test | |
| working-directory: ide | |
| run: npm test | |
| # 렌더러가 실제로 묶이는지까지 본다 — 타입이 맞아도 번들이 깨질 수 있다. | |
| # electron-builder(설치본)는 여기서 돌리지 않는다. 그건 릴리스 워크플로의 일이다. | |
| - name: Build renderer | |
| working-directory: ide | |
| run: npm run build |