diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 70314358d3..fe0f412fad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,11 +54,7 @@ jobs: - name: Test E2E run: npm run e2e - - name: Upload performance metrics as an artifact - uses: actions/upload-artifact@v4 - with: - name: nightwatch-performance-metrics - path: perf-metrics*.json + - name: 'Upload E2E results on failure' if: ${{ failure() }} uses: actions/upload-artifact@v4 diff --git a/.github/workflows/lint-and-test-pr.yml b/.github/workflows/lint-and-test-pr.yml index 100555d037..d8383a8fc4 100644 --- a/.github/workflows/lint-and-test-pr.yml +++ b/.github/workflows/lint-and-test-pr.yml @@ -46,30 +46,6 @@ jobs: - run: npm run lint:ci - run: npm run test - run: npm run e2e - - name: Upload performance metrics as an artifact - uses: actions/upload-artifact@v4 - with: - name: nightwatch-performance-metrics - path: perf-metrics*.json - - # - name: Read performance metrics to env - # # if: github.event_name == 'pull_request' - # run: | - # perfResult=$(node tools/gen-perf-metrics.js) - # echo "e2ePerfResult<> $GITHUB_ENV - # echo "$perfResult" >> $GITHUB_ENV - # echo "EOF" >> $GITHUB_ENV - # echo $perfResult - # echo $GITHUB_ENV - # - name: Attach performance metrics to PR as comment - # # if: github.event_name == 'pull_request' - # uses: marocchino/sticky-pull-request-comment@v2 - # continue-on-error: true - # with: - # # header: test - # message: | - # Perf Result - # ${{ env.e2ePerfResult }} - name: 'Upload E2E results on failure' if: ${{ failure() }}