codecov 관련 설정 및 ci 제거 #14025
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: | |
| - '**' | |
| tags-ignore: | |
| - '**' | |
| env: | |
| # Node.js | |
| NODE_VERSION: 'lts/*' | |
| PNPM_VERSION: '9' | |
| NPM_REGISTRY_URL: 'https://registry.npmjs.org' | |
| NODE_AUTH_TOKEN: ${{ secrets.READ_ONLY_NPM_TOKEN }} | |
| HUSKY: 0 | |
| # Nx Cloud | |
| NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
| jobs: | |
| check-dependencies: | |
| runs-on: ${{ vars.NOL_RUNNER }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v3 | |
| with: | |
| version: ${{ env.PNPM_VERSION }} | |
| - name: Use Node.js ${{ env.NODE_VERSION }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| registry-url: ${{ env.NPM_REGISTRY_URL }} | |
| cache: 'pnpm' | |
| - run: pnpm install | |
| - name: If working tree dirty, shutdown job | |
| id: check-working-tree-clean | |
| run: | | |
| if [[ $(git diff --stat) != '' ]]; then | |
| git diff --stat | |
| exit 1 | |
| fi | |
| lint: | |
| runs-on: ${{ vars.NOL_RUNNER }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v3 | |
| with: | |
| version: ${{ env.PNPM_VERSION }} | |
| - name: Use Node.js ${{ env.NODE_VERSION }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| registry-url: ${{ env.NPM_REGISTRY_URL }} | |
| cache: 'pnpm' | |
| - run: pnpm install | |
| - name: Lint | |
| id: lint | |
| run: pnpm run lint | |
| build: | |
| runs-on: ${{ vars.NOL_RUNNER }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v3 | |
| with: | |
| version: ${{ env.PNPM_VERSION }} | |
| - name: Use Node.js ${{ env.NODE_VERSION }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| registry-url: ${{ env.NPM_REGISTRY_URL }} | |
| cache: 'pnpm' | |
| - run: pnpm install | |
| - name: Build | |
| id: build | |
| run: pnpm run build | |
| test: | |
| runs-on: ${{ vars.NOL_RUNNER }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v3 | |
| with: | |
| version: ${{ env.PNPM_VERSION }} | |
| - name: Use Node.js ${{ env.NODE_VERSION }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| registry-url: ${{ env.NPM_REGISTRY_URL }} | |
| cache: 'pnpm' | |
| - run: pnpm install | |
| - name: Test | |
| id: test | |
| run: pnpm run test -- --ci --reporters github-actions --reporters summary --maxWorkers 2 |