Skip to content

Commit 7a6e5ea

Browse files
update action
1 parent 8c4417e commit 7a6e5ea

File tree

3 files changed

+4
-18
lines changed

3 files changed

+4
-18
lines changed

.github/workflows/playwright.yml

-14
Original file line numberDiff line numberDiff line change
@@ -73,20 +73,6 @@ jobs:
7373
path: playwright-report/
7474
retention-days: 7
7575

76-
- name: Upload JUnit test results
77-
if: always() && !cancelled()
78-
uses: actions/upload-artifact@v4
79-
with:
80-
name: junit-results
81-
path: junit.xml
82-
retention-days: 7
83-
84-
- name: Publish Test Results
85-
if: always() && !cancelled()
86-
uses: EnricoMi/publish-unit-test-result-action@v2
87-
with:
88-
files: junit.xml
89-
9076
- name: Process test result
9177
if: always()
9278
run: |

playwright.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default defineConfig({
3333
/* Opt out of parallel tests on CI. */
3434
workers: process.env.CI ? 1 : undefined,
3535
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
36-
reporter: 'html',
36+
reporter: [['line']],
3737
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
3838
use: {
3939
/* Base URL to use in actions like `await page.goto('/')`. */

tests/run-tests.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,16 @@ async function main(): Promise<void> {
106106
fs.mkdirSync('playwright-report', { recursive: true });
107107
}
108108

109-
execSync('pnpm playwright test --reporter=line,html,junit', {
109+
execSync('pnpm playwright test --reporter=line', {
110110
stdio: 'inherit',
111111
env: { ...process.env, POSTGRES_URL: branchConnectionUri },
112112
});
113113

114-
console.log('All tests passed!');
114+
console.log('All tests passed!');
115115
} catch (testError) {
116116
testFailed = true;
117117
const exitCode = (testError as any).status || 1;
118-
console.error(`Tests failed with exit code: ${exitCode}`);
118+
console.error(`Tests failed with exit code: ${exitCode}`);
119119

120120
if (process.env.GITHUB_ACTIONS === 'true') {
121121
console.log(

0 commit comments

Comments
 (0)