[pull] master from conwnet:master #324
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: Build & Test with VS Code build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build-with-vscode-build: | |
| permissions: | |
| contents: read | |
| strategy: | |
| matrix: | |
| os: [macos-14] | |
| node-version: [24.x] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: 'npm' | |
| node-version: ${{ matrix.node-version }} | |
| - run: npm install && cd vscode-web && npm install | |
| - name: Build VS Code web | |
| working-directory: vscode-web | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: npm run build | |
| - run: npm run link && npm run build | |
| env: | |
| GITHUB_API_PREFIX: http://localhost:8080/api/github | |
| - name: Install snapshot test dependencies | |
| working-directory: tests | |
| run: npm ci && npx playwright install --with-deps | |
| - name: Run snapshot tests | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: npx start-server-and-test watch:dev-server http://localhost:8080 "env -u GITHUB_TOKEN npm --prefix tests test" |