Skip to content

Commit

Permalink
upload videos
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiomartins8 committed Mar 26, 2024
1 parent 2a1c56c commit a0cd14a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
echo WORKFLOW_ID="$WORKFLOW_ID" >> .env
- name: Install dependencies and build
run: npm ci && npm run build
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Install Playwright Chromium
run: npx playwright install --with-deps chromium
- name: Run Playwright tests
run: npm run e2e

Expand All @@ -53,7 +53,13 @@ jobs:
echo WORKFLOW_ID="$WORKFLOW_ID" >> .env
- name: Install dependencies and build
run: npm ci && npm run build
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Install Playwright Chromium
run: npx playwright install --with-deps chromium
- name: Run Playwright tests
run: npm run e2e
run: npm run e2e
- uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: test-results/
retention-days: 30
4 changes: 2 additions & 2 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default defineConfig({
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 1 : 0,
retries: 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
Expand All @@ -32,7 +32,7 @@ export default defineConfig({
trace: 'on-first-retry',

/* https://playwright.dev/docs/videos#record-video */
// video: 'on-first-retry',
video: 'on-first-retry',
},

/* Configure projects for major browsers */
Expand Down

0 comments on commit a0cd14a

Please sign in to comment.