Bump dependencies, fix integration tests #349
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: Pull Request CI | |
on: | |
pull_request: | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
fail-fast: true | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '22.x' | |
registry-url: 'https://registry.npmjs.org' | |
- run: npx prettier --check "{src,typescript}/**/*.ts" --ignore-path .gitignore | |
- uses: pnpm/action-setup@v4 | |
with: | |
run_install: | | |
args: [--frozen-lockfile, --strict-peer-dependencies] | |
- run: pnpm lint | |
- run: pnpm vscode-utils prepareFrameworkBuild | |
- run: pnpm build | |
- run: timeout 60 pnpm test-plugin | |
if: ${{ runner.os != 'Windows' }} | |
# if command with timeout already failed on unix, Windows job will be cancelled | |
- run: pnpm test-plugin | |
if: ${{ runner.os == 'Windows' }} | |
- uses: GabrielBB/[email protected] | |
with: | |
run: pnpm integration-test | |
- run: cd out && npx @vscode/vsce package --out ../extension.vsix | |
- name: Archive production artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: extension | |
path: | | |
extension.vsix |