Skip to content

Commit

Permalink
test: 패키지 캐싱 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondanythings committed Feb 1, 2024
1 parent 28eced6 commit b526c78
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/storybook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npx http-server storybook-static --port 6006 --silent" \
"npx wait-on tcp:6006 && yarn test-storybook"
chromatic:
runs-on: ubuntu-latest
outputs:
Expand All @@ -35,6 +36,20 @@ jobs:
node-version-file: '.nvmrc'
cache: 'yarn'

- name: Setup Package Version
id: yarn-cached-version
run: echo YARN_VERSION=$(cat package.json | jq -r '.packageManager') >> $GITHUB_OUTPUT

- name: Yarn Cache - PnP
uses: actions/cache@v2
with:
path: |
.yarn/cache
.pnp.*
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-${{ steps.set-version.outputs.YARN_VERSION }}
restore-keys: |
${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-
- name: Install dependencies
run: yarn install --check-cache

Expand Down

0 comments on commit b526c78

Please sign in to comment.