Skip to content

release

release #334

Workflow file for this run

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
- run: npx prettier --check "{src,typescript}/**/*.ts" --ignore-path .gitignore
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/action-setup@v2.0.1
with:
version: latest
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' }}
- run: cd out && npx @vscode/vsce package --out ../extension.vsix
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: extension
path: |
extension.vsix