退職までにやることリストを追加する #5
Workflow file for this run
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 | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| # 同じブランチで新しい push があったら古い実行はキャンセルする | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| # 日本向けのアプリなので、ローカル環境と同じタイムゾーンで検証する | |
| env: | |
| TZ: Asia/Tokyo | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| # lefthook の git hook はCIでは不要なので prepare をスキップする | |
| - name: Install dependencies | |
| run: npm ci --ignore-scripts | |
| - name: Typecheck | |
| run: npm run typecheck | |
| - name: Lint | |
| run: npm run lint | |
| - name: Test | |
| run: npm test -- --ci |