From a4ffb493148a1d44381ce9c15bd3828ecf3317de Mon Sep 17 00:00:00 2001 From: kyy Date: Fri, 15 May 2026 20:14:33 +0900 Subject: [PATCH] =?UTF-8?q?CI=20=EC=8B=A4=ED=96=89=20=EA=B2=BD=EB=A1=9C?= =?UTF-8?q?=EC=99=80=20Playwright=20=EC=84=9C=EB=B2=84=20=EB=AA=85?= =?UTF-8?q?=EB=A0=B9=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/code_check.yml | 36 +++++++++++++++------------------ 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/.gitea/workflows/code_check.yml b/.gitea/workflows/code_check.yml index d1fd42f4..67679a6b 100644 --- a/.gitea/workflows/code_check.yml +++ b/.gitea/workflows/code_check.yml @@ -655,8 +655,8 @@ jobs: - name: Get Playwright version id: playwright-version + working-directory: devfront run: | - cd devfront echo "version=$(pnpm list -C ../common @playwright/test --depth 0 | grep @playwright/test | awk -F@ '{print $NF}' | head -n 1)" >> "$GITHUB_OUTPUT" - name: Cache Playwright Browsers @@ -669,14 +669,12 @@ jobs: ${{ runner.os }}-playwright- - name: Install devfront dependencies + working-directory: devfront run: | - mkdir -p reports + mkdir -p ../reports set +e - cd devfront - npm install -g pnpm pnpm install -C ../common --no-frozen-lockfile 2>&1 | tee ../reports/devfront-install.log install_exit_code=${PIPESTATUS[0]} - cd .. set -e if [ "$install_exit_code" -ne 0 ]; then @@ -689,23 +687,22 @@ jobs: echo "- Exit Code: \`$install_exit_code\`" echo echo "## Command" - echo "\`cd devfront && npm ci\`" + echo "\`cd devfront && pnpm install -C ../common --no-frozen-lockfile\`" echo echo "## Install Log Tail (last 200 lines)" echo '```text' - tail -n 200 reports/devfront-install.log + tail -n 200 ../reports/devfront-install.log echo '```' - } > reports/devfront-test-failure-report.md + } > ../reports/devfront-test-failure-report.md exit 1 fi - name: Provision browsers for devfront tests + working-directory: devfront run: | set +e - cd devfront pnpm exec playwright install --with-deps 2>&1 | tee ../reports/devfront-provision.log provision_exit_code=${PIPESTATUS[0]} - cd .. set -e if [ "$provision_exit_code" -ne 0 ]; then @@ -722,22 +719,21 @@ jobs: echo echo "## Provision Log Tail (last 200 lines)" echo '```text' - tail -n 200 reports/devfront-provision.log + tail -n 200 ../reports/devfront-provision.log echo '```' - } > reports/devfront-test-failure-report.md + } > ../reports/devfront-test-failure-report.md exit 1 fi - name: Run devfront tests + working-directory: devfront env: PLAYWRIGHT_WORKERS: 2 run: | - mkdir -p reports + mkdir -p ../reports set +e - cd devfront - pnpm run test 2>&1 | tee ../reports/devfront-test.log + pnpm test 2>&1 | tee ../reports/devfront-test.log test_exit_code=${PIPESTATUS[0]} - cd .. set -e if [ "$test_exit_code" -ne 0 ]; then @@ -750,15 +746,15 @@ jobs: echo echo "## Commands" echo "1. \`cd devfront\`" - echo "2. \`npm ci\`" + echo "2. \`pnpm install -C ../common --no-frozen-lockfile\`" echo "3. \`pnpm exec playwright install --with-deps\`" - echo "4. \`pnpm run test\`" + echo "4. \`pnpm test\`" echo echo "## Log Tail (last 200 lines)" echo '```text' - tail -n 200 reports/devfront-test.log + tail -n 200 ../reports/devfront-test.log echo '```' - } > reports/devfront-test-failure-report.md + } > ../reports/devfront-test-failure-report.md fi exit "$test_exit_code"