From 1d24ab17fa24c079c449581ffb221f5638d8178b Mon Sep 17 00:00:00 2001 From: "cw-ryo.yashiro" <> Date: Thu, 13 Jun 2024 09:40:15 +0900 Subject: [PATCH] =?UTF-8?q?27=20[fix]=20github=20actions=E3=81=AE=E8=A8=AD?= =?UTF-8?q?=E5=AE=9A=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=81=AE=E3=83=91?= =?UTF-8?q?=E3=82=B9=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/frontend-vrt.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/frontend-vrt.yml b/.github/workflows/frontend-vrt.yml index c588a7e..ce766c7 100644 --- a/.github/workflows/frontend-vrt.yml +++ b/.github/workflows/frontend-vrt.yml @@ -19,9 +19,10 @@ jobs: uses: actions/cache@v3 id: node_modules_cache with: - path: node_modules + path: ./frontend/node_modules key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} - name: Install dependencies + working-directory: './frontend' if: steps.node_modules_cache.outputs.cache-hit != 'true' run: yarn build-storybook: @@ -36,15 +37,16 @@ jobs: id: node_modules_cache uses: actions/cache@v3 with: - path: node_modules + path: ./frontend/node_modules key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} - name: Cache Storybook uses: actions/cache@v3 id: storybook_cache with: - path: storybook-static + path: ./frontend/storybook-static key: ${{ runner.os }}-${{ github.sha }} - name: Build Storybook + working-directory: './frontend' if: steps.storybook_cache.outputs.cache-hit != 'true' run: yarn build-storybook --quiet vrt-storybook: @@ -61,13 +63,13 @@ jobs: id: node_modules_cache uses: actions/cache@v3 with: - path: node_modules + path: ./frontend/node_modules key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} - name: Restore Storybook id: storybook_cache uses: actions/cache@v3 with: - path: storybook-static + path: ./frontend/storybook-static key: ${{ runner.os }}-${{ github.sha }} - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@master @@ -76,8 +78,11 @@ jobs: aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: ap-northeast-1 - name: Install Fonts + working-directory: './frontend' run: sudo apt-get install fonts-ipafont-gothic fonts-ipafont-mincho - name: Run Storycap + working-directory: './frontend' run: yarn vrt:snapshot - name: Run reg-suit + working-directory: './frontend' run: yarn vrt:run \ No newline at end of file