mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-02 11:20:20 +03:00
Always report benchmarks
This commit is contained in:
parent
e01ec8653a
commit
42e0a2b942
5
.github/workflows/e2e-tests.yml
vendored
5
.github/workflows/e2e-tests.yml
vendored
|
@ -16,6 +16,7 @@ jobs:
|
||||||
- run: npm ci && npm ci --prefix cli
|
- run: npm ci && npm ci --prefix cli
|
||||||
- run: npm run bundle
|
- run: npm run bundle
|
||||||
- name: Set test start
|
- name: Set test start
|
||||||
|
if: always()
|
||||||
id: recordStart
|
id: recordStart
|
||||||
run: echo "time=`date +%s`" >> $GITHUB_OUTPUT
|
run: echo "time=`date +%s`" >> $GITHUB_OUTPUT
|
||||||
- run: npm run e2e-replay
|
- run: npm run e2e-replay
|
||||||
|
@ -25,6 +26,7 @@ jobs:
|
||||||
RECORD_REPLAY_TEST_METRICS: 1
|
RECORD_REPLAY_TEST_METRICS: 1
|
||||||
RECORD_REPLAY_WEBHOOK_URL: ${{ secrets.RECORD_REPLAY_WEBHOOK_URL }}
|
RECORD_REPLAY_WEBHOOK_URL: ${{ secrets.RECORD_REPLAY_WEBHOOK_URL }}
|
||||||
- name: Set upload start
|
- name: Set upload start
|
||||||
|
if: always()
|
||||||
id: uploadStart
|
id: uploadStart
|
||||||
run: echo "time=`date +%s`" >> $GITHUB_OUTPUT
|
run: echo "time=`date +%s`" >> $GITHUB_OUTPUT
|
||||||
- name: Upload replays
|
- name: Upload replays
|
||||||
|
@ -34,6 +36,7 @@ jobs:
|
||||||
api-key: rwk_CMx7Nd43nfKU5j6pDboS16IHDykYDIfIBMoejo6GofG
|
api-key: rwk_CMx7Nd43nfKU5j6pDboS16IHDykYDIfIBMoejo6GofG
|
||||||
public: true
|
public: true
|
||||||
- name: Set duration in output
|
- name: Set duration in output
|
||||||
|
if: always()
|
||||||
id: end
|
id: end
|
||||||
run: |
|
run: |
|
||||||
echo "recordDuration=$((${{ steps.uploadStart.outputs.time }} - ${{ steps.recordStart.outputs.time }}))" >> $GITHUB_OUTPUT
|
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 ci && npm ci --prefix cli
|
||||||
- run: npm run bundle
|
- run: npm run bundle
|
||||||
- name: Set test start
|
- name: Set test start
|
||||||
|
if: always()
|
||||||
id: start
|
id: start
|
||||||
run: echo "time=`date +%s`" >> $GITHUB_OUTPUT
|
run: echo "time=`date +%s`" >> $GITHUB_OUTPUT
|
||||||
- run: npm run e2e
|
- run: npm run e2e
|
||||||
- name: Set duration in output
|
- name: Set duration in output
|
||||||
|
if: always()
|
||||||
id: end
|
id: end
|
||||||
run: echo "duration=$((`date +%s` - ${{ steps.start.outputs.time }}))" >> $GITHUB_OUTPUT
|
run: echo "duration=$((`date +%s` - ${{ steps.start.outputs.time }}))" >> $GITHUB_OUTPUT
|
||||||
upload-benchmarks:
|
upload-benchmarks:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user