From d016d87c153b76b8db6f370cef842278b27430ae Mon Sep 17 00:00:00 2001 From: shashwata Date: Fri, 13 Dec 2024 10:58:17 +0600 Subject: [PATCH] FIX ENV ISSUES --- .github/workflows/e2e_api_tests.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/e2e_api_tests.yml b/.github/workflows/e2e_api_tests.yml index 4c320d861a..812f3ff334 100644 --- a/.github/workflows/e2e_api_tests.yml +++ b/.github/workflows/e2e_api_tests.yml @@ -62,6 +62,9 @@ env: SYSTEM_INFO: ./tests/pw/playwright/systemInfo.json API_TEST_RESULT: ./tests/pw/playwright-report/api/summary-report/results.json API_COVERAGE: ./tests/pw/playwright-report/api/coverage-report/coverage.json + E2E_TEST_RESULT: '' + E2E_COVERAGE: '' + GROUP: '' jobs: tests: @@ -169,17 +172,14 @@ jobs: working-directory: tests/pw run: | if [[ "${{ matrix.group }}" == "e2e_1" ]]; then - export E2E_TEST_RESULT="./tests/pw/playwright-report/e2e/${{ matrix.group }}/summary-report/results.json" - export E2E_COVERAGE="./tests/pw/playwright-report/e2e/${{ matrix.group }}/coverage-report/coverage.json" - export GROUP="${{ matrix.group }}" - echo "E2E_TEST_RESULT: $E2E_TEST_RESULT" - echo "E2E_COVERAGE: $E2E_COVERAGE" - echo "GROUP: $GROUP" + echo "E2E_TEST_RESULT=./tests/pw/playwright-report/e2e/${{ matrix.group }}/summary-report/results.json" >> $GITHUB_ENV + echo "E2E_COVERAGE=./tests/pw/playwright-report/e2e/${{ matrix.group }}/coverage-report/coverage.json" >> $GITHUB_ENV + echo "GROUP=${{ matrix.group }}" >> $GITHUB_ENV npx playwright test --project="${{ matrix.group }}" --config=e2e.config.ts elif [[ "${{ matrix.group }}" == "e2e_2" ]]; then - export E2E_TEST_RESULT="./tests/pw/playwright-report/e2e/${{ matrix.group }}/summary-report/results.json" - export E2E_COVERAGE="./tests/pw/playwright-report/e2e/${{ matrix.group }}/coverage-report/coverage.json" - export GROUP="${{ matrix.group }}" + echo "E2E_TEST_RESULT=./tests/pw/playwright-report/e2e/${{ matrix.group }}/summary-report/results.json" >> $GITHUB_ENV + echo "E2E_COVERAGE=./tests/pw/playwright-report/e2e/${{ matrix.group }}/coverage-report/coverage.json" >> $GITHUB_ENV + echo "GROUP=${{ matrix.group }}" >> $GITHUB_ENV npx playwright test --project="${{ matrix.group }}" --config=e2e.config.ts fi