diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index dcd6010ad2c97..e4929763afa83 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -43,6 +43,8 @@ jobs: memcached: [ true, false ] with: memcached: ${{ matrix.memcached }} + secrets: + CODEVITALS_PROJECT_TOKEN: ${{ secrets.CODEVITALS_PROJECT_TOKEN }} slack-notifications: name: Slack Notifications diff --git a/.github/workflows/reusable-performance.yml b/.github/workflows/reusable-performance.yml index bf6b31fc17a90..c6791aaf190dc 100644 --- a/.github/workflows/reusable-performance.yml +++ b/.github/workflows/reusable-performance.yml @@ -26,6 +26,10 @@ on: required: false type: 'boolean' default: false + secrets: + CODEVITALS_PROJECT_TOKEN: + description: 'The authorization token for https://www.codevitals.run/project/wordpress.' + required: true env: PUPPETEER_SKIP_DOWNLOAD: ${{ true }} diff --git a/tests/performance/log-results.js b/tests/performance/log-results.js index bf62721c1bfd8..581c0d39868b5 100644 --- a/tests/performance/log-results.js +++ b/tests/performance/log-results.js @@ -108,6 +108,7 @@ const req = https.request( options, ( res ) => { req.on( 'error', ( error ) => { console.error( error ); + process.exit( 1 ); } ); req.write( data );