Skip to content

Commit

Permalink
FIX ENV ISSUES
Browse files Browse the repository at this point in the history
  • Loading branch information
shashwatahalder01 committed Dec 13, 2024
1 parent ab60fbf commit d016d87
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/e2e_api_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d016d87

Please sign in to comment.