chore: use shared test run id (#24448)
This commit is contained in:
parent
c8f2fc392a
commit
216d08ba94
1
.github/workflows/tests_service.yml
vendored
1
.github/workflows/tests_service.yml
vendored
|
|
@ -30,6 +30,7 @@ jobs:
|
||||||
PLAYWRIGHT_SERVICE_ACCESS_KEY: ${{ secrets.PLAYWRIGHT_SERVICE_ACCESS_KEY }}
|
PLAYWRIGHT_SERVICE_ACCESS_KEY: ${{ secrets.PLAYWRIGHT_SERVICE_ACCESS_KEY }}
|
||||||
PLAYWRIGHT_SERVICE_URL: ${{ secrets.PLAYWRIGHT_SERVICE_URL }}
|
PLAYWRIGHT_SERVICE_URL: ${{ secrets.PLAYWRIGHT_SERVICE_URL }}
|
||||||
PLAYWRIGHT_SERVICE_OS: ${{ matrix.service-os }}
|
PLAYWRIGHT_SERVICE_OS: ${{ matrix.service-os }}
|
||||||
|
PLAYWRIGHT_SERVICE_RUN_ID: ${{ github.run_id }}-${{ github.run_attempt }}-${{ github.sha }}
|
||||||
- name: Upload blob report to GitHub
|
- name: Upload blob report to GitHub
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ const reporters = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const os: 'linux' | 'windows' = (process.env.PLAYWRIGHT_SERVICE_OS as 'linux' | 'windows') || 'linux';
|
const os: 'linux' | 'windows' = (process.env.PLAYWRIGHT_SERVICE_OS as 'linux' | 'windows') || 'linux';
|
||||||
const runId = new Date().toISOString(); // name the test run
|
const runId = process.env.PLAYWRIGHT_SERVICE_RUN_ID || new Date().toISOString(); // name the test run
|
||||||
|
|
||||||
let connectOptions: any;
|
let connectOptions: any;
|
||||||
if (mode === 'service')
|
if (mode === 'service')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue