Skip to content

Commit

Permalink
chore(ci): plug BKA for vscode e2e tests (#5175)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchabran authored Aug 13, 2024
1 parent 600fc04 commit 38b073f
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,12 @@ jobs:
- run: pnpm install
- run: xvfb-run -a pnpm -C vscode run test:e2e --shard=${{ matrix.shard }}
if: matrix.runner == 'ubuntu'
env:
BUILDKITE_ANALYTICS_TOKEN: ${{ secrets.BUILDKITE_ANALYTICS_TOKEN }}
- run: pnpm -C vscode run test:e2e
if: matrix.runner != 'ubuntu'
env:
BUILDKITE_ANALYTICS_TOKEN: ${{ secrets.BUILDKITE_ANALYTICS_TOKEN }}
- uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
Expand Down
42 changes: 41 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1470,6 +1470,7 @@
"ajv": "^8.14.0",
"ajv-errors": "^3.0.0",
"ajv-formats": "^3.0.1",
"buildkite-test-collector": "^1.7.2",
"chokidar": "^3.6.0",
"concurrently": "^8.2.0",
"dedent": "^0.7.0",
Expand Down
2 changes: 1 addition & 1 deletion vscode/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default defineConfig({
expect: {
timeout: isWin || isCI ? 5000 : 2000,
},
reporter: isCI ? 'github' : 'list',
reporter: isCI ? [['github'], ['buildkite-test-collector/playwright/reporter']] : [['list']],
globalSetup: require.resolve('./test/e2e/utils/setup'),
globalTeardown: require.resolve('./test/e2e/utils/teardown'),
})
7 changes: 6 additions & 1 deletion vscode/playwright.v2.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ export default defineConfig<
['line', { printSteps: true, includeProjectInTestName: true }],
['html', { outputFolder: '.test-reports', fileName: 'report.html', open: 'never' }],
['json', { outputFile: '.test-reports/report.json', open: 'never' }],
...(isCI ? [['github', {}] satisfies ReporterDescription] : []),
...(isCI
? [
['github', {}] satisfies ReporterDescription,
['buildkite-test-collector/playwright/reporter'] satisfies ReporterDescription,
]
: []),
],
})

0 comments on commit 38b073f

Please sign in to comment.