bug: ci 에러 수정 #3
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: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| type_check: | |
| runs-on: ubuntu-latest | |
| env: | |
| TURBO_TELEMETRY_DISABLED: 1 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.15.1 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.19.0 | |
| cache: pnpm | |
| - name: Cache turbo | |
| uses: actions/cache@v4 | |
| with: | |
| path: .turbo | |
| key: turbo-${{ runner.os }}-typecheck-${{ hashFiles('pnpm-lock.yaml') }} | |
| - name: Install | |
| run: pnpm install --frozen-lockfile | |
| - name: Type check | |
| run: pnpm -w type-check | |
| lint: | |
| runs-on: ubuntu-latest | |
| env: | |
| TURBO_TELEMETRY_DISABLED: 1 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.15.1 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.19.0 | |
| cache: pnpm | |
| - name: Cache turbo | |
| uses: actions/cache@v4 | |
| with: | |
| path: .turbo | |
| key: turbo-${{ runner.os }}-lint-${{ hashFiles('pnpm-lock.yaml') }} | |
| - name: Install | |
| run: pnpm install --frozen-lockfile | |
| - name: Lint | |
| run: pnpm -w lint | |
| db_generate: | |
| runs-on: ubuntu-latest | |
| env: | |
| TURBO_TELEMETRY_DISABLED: 1 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.15.1 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.19.0 | |
| cache: pnpm | |
| - name: Cache turbo | |
| uses: actions/cache@v4 | |
| with: | |
| path: .turbo | |
| key: turbo-${{ runner.os }}-dbgen-${{ hashFiles('pnpm-lock.yaml') }} | |
| - name: Install | |
| run: pnpm install --frozen-lockfile | |
| - name: Prisma generate | |
| run: pnpm -w db:generate | |
| summarizer_test: | |
| runs-on: ubuntu-latest | |
| env: | |
| TURBO_TELEMETRY_DISABLED: 1 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.15.1 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.19.0 | |
| cache: pnpm | |
| - name: Cache turbo | |
| uses: actions/cache@v4 | |
| with: | |
| path: .turbo | |
| key: turbo-${{ runner.os }}-summarizer-${{ hashFiles('pnpm-lock.yaml') }} | |
| - name: Install | |
| run: pnpm install --frozen-lockfile | |
| - name: Summarizer tests | |
| run: pnpm --filter @tech-radar/summarizer test |