diff --git a/.github/workflows/playwright-demo.yaml b/.github/workflows/playwright-demo.yaml index 8ad1bd0..d02313b 100644 --- a/.github/workflows/playwright-demo.yaml +++ b/.github/workflows/playwright-demo.yaml @@ -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 @@ -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 @@ -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' diff --git a/.github/workflows/puppeteer-demo.yaml b/.github/workflows/puppeteer-demo.yaml index 52ce552..4f5c865 100644 --- a/.github/workflows/puppeteer-demo.yaml +++ b/.github/workflows/puppeteer-demo.yaml @@ -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 @@ -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 @@ -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' diff --git a/.github/workflows/yaml-scripts-demo.yaml b/.github/workflows/yaml-scripts-demo.yaml index 96d0cf9..213a39b 100644 --- a/.github/workflows/yaml-scripts-demo.yaml +++ b/.github/workflows/yaml-scripts-demo.yaml @@ -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 @@ -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/ diff --git a/yaml-scripts-demo/.gitignore b/yaml-scripts-demo/.gitignore index 1ec58b7..8ee6e4b 100644 --- a/yaml-scripts-demo/.gitignore +++ b/yaml-scripts-demo/.gitignore @@ -1,5 +1,6 @@ output/ package-lock.json +.env # Midscene.js dump files midscene_run/report