From 867c4d0118c5bea99cb23e4908ee090f4777c0ac Mon Sep 17 00:00:00 2001 From: Sivritkin Dmitriy Date: Sat, 9 Sep 2023 03:28:16 +0300 Subject: [PATCH] ci: test backend CI --- .github/workflows/nextjs_bundle_analysis.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nextjs_bundle_analysis.yml b/.github/workflows/nextjs_bundle_analysis.yml index 4d7404984..cf87923b1 100644 --- a/.github/workflows/nextjs_bundle_analysis.yml +++ b/.github/workflows/nextjs_bundle_analysis.yml @@ -57,13 +57,13 @@ jobs: with: # if you use a custom build directory, replace all instances of `.next` in this file with your build directory # ex: if your app builds to `dist`, replace `.next` with `dist` - path: .next/cache + path: ./client/.next/cache # change this if you prefer a more strict cache key: ${{ runner.os }}-build-${{ env.cache-name }} - name: Build next.js app # change this if your site requires a custom build command - run: ./node_modules/.bin/next build + run: ./client/node_modules/.bin/next build # Here's the first place where next-bundle-analysis' own script is used # This step pulls the raw bundle stats for the current bundle @@ -74,7 +74,7 @@ jobs: uses: actions/upload-artifact@v3 with: name: bundle - path: .next/analyze/__bundle_analysis.json + path: ./client/.next/analyze/__bundle_analysis.json - name: Download base branch bundle stats uses: dawidd6/action-download-artifact@v2 @@ -82,7 +82,7 @@ jobs: with: workflow: nextjs_bundle_analysis.yml branch: ${{ github.event.pull_request.base.ref }} - path: .next/analyze/base + path: ./client/.next/analyze/base # And here's the second place - this runs after we have both the current and # base branch bundle stats, and will compare them to determine what changed. @@ -99,7 +99,7 @@ jobs: # entry in your package.json file. - name: Compare with base branch bundle if: success() && github.event.number - run: ls -laR .next/analyze/base && npx -p nextjs-bundle-analysis compare + run: ls -laR ./client/.next/analyze/base && npx -p nextjs-bundle-analysis compare - name: Get Comment Body id: get-comment-body @@ -107,7 +107,7 @@ jobs: # https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings run: | echo "body<> $GITHUB_OUTPUT - echo "$(cat .next/analyze/__bundle_analysis_comment.txt)" >> $GITHUB_OUTPUT + echo "$(cat ./client/.next/analyze/__bundle_analysis_comment.txt)" >> $GITHUB_OUTPUT echo EOF >> $GITHUB_OUTPUT - name: Find Comment