feat : 프로그래스바 div로 구현 #18
Workflow file for this run
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 |