devops: properly print group boundaries in GitHub actions

This commit is contained in:
Yury Semikhatsky 2025-02-05 11:55:34 -08:00
parent 4b64c47a25
commit 707c64d4b0
2 changed files with 22 additions and 12 deletions

View file

@ -37,22 +37,28 @@ runs:
node-version: ${{ inputs.node-version }}
- uses: ./.github/actions/enable-microphone-access
- run: |
echo "::group::npm ci"
npm ci
echo "::endgroup::"
{
echo "::group::npm ci"
npm ci
echo "::endgroup::"
}
shell: bash
env:
DEBUG: pw:install
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
- run: |
echo "::group::npm run build"
npm run build
echo "::endgroup::"
{
echo "::group::npm run build"
npm run build
echo "::endgroup::"
}
shell: bash
- run: |
echo "::group::npx playwright install --with-deps"
npx playwright install --with-deps ${{ inputs.browsers-to-install }}
echo "::endgroup::"
{
echo "::group::npx playwright install --with-deps"
npx playwright install --with-deps ${{ inputs.browsers-to-install }}
echo "::endgroup::"
}
shell: bash
- name: Run tests
if: inputs.shell == 'bash'
@ -79,9 +85,11 @@ runs:
tenant-id: ${{ inputs.flakiness-tenant-id }}
subscription-id: ${{ inputs.flakiness-subscription-id }}
- run: |
echo "::group::./utils/upload_flakiness_dashboard.sh"
./utils/upload_flakiness_dashboard.sh ./test-results/report.json
echo "::endgroup::"
{
echo "::group::./utils/upload_flakiness_dashboard.sh"
./utils/upload_flakiness_dashboard.sh ./test-results/report.json
echo "::endgroup::"
}
if: ${{ !cancelled() }}
shell: bash
- name: Upload blob report

View file

@ -80,6 +80,7 @@ test.afterEach(() => {
});
test('click should not leak', async ({ page, toImpl }) => {
const start = Date.now();
await page.setContent(`
<button>static button 1</button>
<button>static button 2</button>
@ -102,6 +103,7 @@ test('click should not leak', async ({ page, toImpl }) => {
expect(leakedJSHandles()).toBeFalsy();
await checkWeakRefs(toImpl(page), 2, 25);
console.log('click should not leak', Date.now() - start);
});
test('fill should not leak', async ({ page, mode, toImpl }) => {