Project Scaffolding (진행 중입니다. 완료되면 다시 정리할게요!) #1
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: Build Test | |
on: pull_request | |
jobs: | |
lint-check: | |
name: Build Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Cache Dependencies | |
uses: actions/cache@v2 | |
with: | |
path: .yarn/cache | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "16" | |
- name: Check for Cached Dependencies | |
id: cache-check | |
run: | | |
if [ -d .yarn/cache ]; then | |
echo "Cache found!" | |
echo "cache-hit=true" >> $GITHUB_ENV | |
fi | |
- name: Install Dependencies | |
if: steps.cache-check.outputs.cache-hit != 'true' | |
run: yarn install | |
- name: Run Build | |
run: yarn Build |