Skip to content

Commit

Permalink
ci: upload test reports
Browse files Browse the repository at this point in the history
  • Loading branch information
Ni55aN committed Sep 14, 2023
1 parent 6ea3fdf commit a146724
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,9 @@ jobs:
CI: ""
- name: Run Playwright tests
run: node ./dist/index.js test -s ${{ github.event.inputs.name }} -sv ${{ github.event.inputs.version }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: test-results
path: test-results/
retention-days: 7
5 changes: 4 additions & 1 deletion src/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ export default defineConfig({
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 1,
workers: process.env.CI ? 1 : undefined,
reporter: 'line',
reporter: [
['line'],
process.env.CI ? ['github'] : ['html']
],
use: {
actionTimeout: 4000,
trace: 'on-first-retry',
Expand Down

0 comments on commit a146724

Please sign in to comment.