Skip to content

codecov 관련 설정 및 ci 제거 #14021

codecov 관련 설정 및 ci 제거

codecov 관련 설정 및 ci 제거 #14021

Workflow file for this run

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