We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e9de9e commit c105109Copy full SHA for c105109
1 file changed
.github/workflows/optionalFlow.yml
@@ -0,0 +1,28 @@
1
+name: Optional deploy flow
2
+on:
3
+ push:
4
+ branches: [ prod ]
5
+ pull_request:
6
7
+jobs:
8
+ test:
9
+ name: Prod job
10
+ timeout-minutes: 60
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - uses: actions/setup-node@v4
15
+ with:
16
+ node-version: lts/*
17
+ - name: Install dependencies
18
+ run: npm ci
19
+ - name: Install Playwright Browsers
20
+ run: npx playwright install --with-deps
21
+ - name: Run Playwright tests
22
+ run: npx playwright test main-page.spec.ts
23
+ - uses: actions/upload-artifact@v4
24
+ if: ${{ !cancelled() }}
25
26
+ name: playwright-report
27
+ path: playwright-report/
28
+ retention-days: 30
0 commit comments