feat : 기존 라이브러리, 데모 애플리케이션 코드를 모노레포로 이전하고 esbuild의 scss및 svg 적용 안되던 문제 해결 #11
This file contains 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: Lint and Type Check | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: | |
- main | |
- develop | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Get Yarn version | |
id: yarn-version | |
run: echo "YARN_VERSION=$(yarn --version)" >> $GITHUB_OUTPUT | |
- name: Cache Yarn dependencies | |
uses: actions/cache@v3 | |
with: | |
path: .yarn/cache | |
key: ${{ runner.os }}-yarn-${{ steps.yarn-version.outputs.YARN_VERSION }}-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn-${{ steps.yarn-version.outputs.YARN_VERSION }}- | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Run TypeScript type check | |
run: yarn typecheck | |
- name: Run ESLint | |
run: yarn lint |