Skip to content

Commit

Permalink
feat: support beta tag version for github action (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyutaotao authored Dec 9, 2024
1 parent bb1094a commit 94db70d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/playwright-demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Playwright Demo
on:
workflow_dispatch:
inputs:
output_folder:
description: 'Midscene report dir'
tag:
description: 'The tag name of @midscene/'
required: true
default: 'playwright-demo/midscene_run/report'
default: 'latest'
push:
branches:
- main
Expand All @@ -26,6 +26,7 @@ jobs:
run: |
cd playwright-demo
npm i pnpm -g
pnpm i @midscene/web@${{ github.event.inputs.tag }} --save-dev
pnpm install
pnpm run e2e
continue-on-error: true
Expand All @@ -35,7 +36,7 @@ jobs:
with:
if-no-files-found: error
name: Midscene Report
path: ${{ github.workspace }}/${{ github.event.inputs.output_folder }}
path: ${{ github.workspace }}/playwright-demo/midscene_run/report

- name: Check if script failed
if: steps.run-script.outcome == 'failure'
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/puppeteer-demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Puppeteer Demo
on:
workflow_dispatch:
inputs:
output_folder:
description: 'Midscene report dir'
tag:
description: 'The tag name of @midscene/'
required: true
default: 'puppeteer-demo/midscene_run/report'
default: 'latest'
push:
branches:
- main
Expand All @@ -26,6 +26,7 @@ jobs:
run: |
cd puppeteer-demo
npm i pnpm -g
pnpm i @midscene/web@${{ github.event.inputs.tag }} --save-dev
pnpm install
pnpm run test
continue-on-error: true
Expand All @@ -35,7 +36,7 @@ jobs:
with:
if-no-files-found: error
name: Midscene Report
path: ${{ github.workspace }}/${{ github.event.inputs.output_folder }}
path: ${{ github.workspace }}/puppeteer-demo/midscene_run/report

- name: Check if script failed
if: steps.run-script.outcome == 'failure'
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/yaml-scripts-demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@ on:
workflow_dispatch:
inputs:
tag:
description: 'The tag name of @midscene/cli'
description: 'The tag name of @midscene/'
required: true
default: 'latest'
output_folder:
description: 'Midscene report directory'
required: true
default: 'yaml-scripts-demo/midscene_run/report/'
push:
branches:
- main
Expand Down Expand Up @@ -40,4 +36,4 @@ jobs:
with:
if-no-files-found: error
name: Midscene Report
path: ${{ github.workspace }}/${{ github.event.inputs.output_folder }}
path: ${{ github.workspace }}/yaml-scripts-demo/midscene_run/report/
1 change: 1 addition & 0 deletions yaml-scripts-demo/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
output/
package-lock.json
.env

# Midscene.js dump files
midscene_run/report
Expand Down

0 comments on commit 94db70d

Please sign in to comment.