-
Notifications
You must be signed in to change notification settings - Fork 11
42 lines (37 loc) · 1.01 KB
/
playwright-demo.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Playwright Demo
on:
workflow_dispatch:
inputs:
output_folder:
description: 'Midscene report dir'
required: true
default: 'playwright-demo/midscene_run/report'
push:
branches:
- main
jobs:
run_script:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run script
id: run-script
env:
OPENAI_BASE_URL: ${{ secrets.OPENAI_BASE_URL }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
cd playwright-demo
npm i pnpm -g
pnpm install
pnpm run e2e
continue-on-error: true
- name: Upload output folder
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: Midscene Report
path: ${{ github.workspace }}/${{ github.event.inputs.output_folder }}
- name: Check if script failed
if: steps.run-script.outcome == 'failure'
run: exit 1