ci: add autotest cases and pipeline #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR UI AutoTest | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| ui-test: | |
| runs-on: windows-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build extension | |
| run: npm run build | |
| - name: Package PR VSIX | |
| run: npx @vscode/vsce@latest package -o extension.vsix | |
| - name: Install autotest CLI | |
| run: npm install -g @vscjava/vscode-autotest | |
| - name: Run Help Center webview UI test | |
| shell: pwsh | |
| run: | | |
| $vsixPath = Join-Path (Get-Location) "extension.vsix" | |
| autotest run test-plans\java-pack-help-center-webview.yaml --vsix $vsixPath --no-llm | |
| - name: Upload UI test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: pr-ui-autotest-results | |
| path: test-results/ | |
| retention-days: 30 |