From 42e0a2b942d2fd51e513c1df6b6dbd31d58d631b Mon Sep 17 00:00:00 2001 From: Jaril Date: Mon, 24 Oct 2022 14:13:50 -0700 Subject: [PATCH] Always report benchmarks --- .github/workflows/e2e-tests.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index ebb61226..9e8e9946 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -16,6 +16,7 @@ jobs: - run: npm ci && npm ci --prefix cli - run: npm run bundle - name: Set test start + if: always() id: recordStart run: echo "time=`date +%s`" >> $GITHUB_OUTPUT - run: npm run e2e-replay @@ -25,6 +26,7 @@ jobs: RECORD_REPLAY_TEST_METRICS: 1 RECORD_REPLAY_WEBHOOK_URL: ${{ secrets.RECORD_REPLAY_WEBHOOK_URL }} - name: Set upload start + if: always() id: uploadStart run: echo "time=`date +%s`" >> $GITHUB_OUTPUT - name: Upload replays @@ -34,6 +36,7 @@ jobs: api-key: rwk_CMx7Nd43nfKU5j6pDboS16IHDykYDIfIBMoejo6GofG public: true - name: Set duration in output + if: always() id: end run: | echo "recordDuration=$((${{ steps.uploadStart.outputs.time }} - ${{ steps.recordStart.outputs.time }}))" >> $GITHUB_OUTPUT @@ -62,10 +65,12 @@ jobs: - run: npm ci && npm ci --prefix cli - run: npm run bundle - name: Set test start + if: always() id: start run: echo "time=`date +%s`" >> $GITHUB_OUTPUT - run: npm run e2e - name: Set duration in output + if: always() id: end run: echo "duration=$((`date +%s` - ${{ steps.start.outputs.time }}))" >> $GITHUB_OUTPUT upload-benchmarks: