Skip to content

Commit c810720

Browse files
create a github action workflow from scratch
1 parent f161fd7 commit c810720

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Run simple suite
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
run-simple-suite:
8+
timeout-minutes: 15
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Set up Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: '22'
18+
cache: 'yarn'
19+
20+
- name: Install dependencies
21+
run: yarn install
22+
23+
- name: Install Playwright browsers
24+
run: yarn playwright install chromium
25+
26+
- name: Run simple suite
27+
run: yarn playwright test --project=chromium --grep @smoke
28+
29+
- name: Upload test results
30+
if: ${{ !cancelled() }}
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: simple-suite-results-${{ github.run_id }}
34+
path: playwright-report/
35+
retention-days: 7

0 commit comments

Comments
 (0)