Skip to content

Commit 521d8d4

Browse files
authored
Merge pull request #4 from MikhailSilk:optional-flow
Start optional flow
2 parents 3e9de9e + c105109 commit 521d8d4

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/optionalFlow.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Optional deploy flow
2+
on:
3+
push:
4+
branches: [ prod ]
5+
pull_request:
6+
branches: [ prod ]
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+
with:
26+
name: playwright-report
27+
path: playwright-report/
28+
retention-days: 30

0 commit comments

Comments
 (0)