chore(vscode): add testing in gha #2
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
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test-vscode-e2e: | |
| env: | |
| PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.12' | |
| - name: Install Python dependencies | |
| run: make install-dev | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20' | |
| - uses: pnpm/action-setup@v2 | |
| with: | |
| version: latest | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Run CI | |
| run: pnpm run ci | |
| - name: Fetch VSCode | |
| working-directory: vscode/extension | |
| run: pnpm run fetch-vscode | |
| - name: Run E2E tests | |
| working-directory: vscode/extension | |
| run: pnpm run test:e2e | |
| - name: Upload test videos | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: test-videos | |
| path: vscode/extension/test-videos/ |