Improve snippet docs #9510
Workflow file for this run
This file contains 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: Run Tests | |
permissions: read-all | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened] | |
merge_group: | |
branches: [main] | |
jobs: | |
test: | |
name: Test | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
vscode_version: [stable] | |
include: | |
- os: ubuntu-latest | |
vscode_version: legacy | |
runs-on: ${{ matrix.os }} | |
env: | |
VSCODE_VERSION: ${{ matrix.vscode_version }} | |
VSCODE_CRASH_DIR: ${{ github.workspace }}/artifacts/dumps | |
VSCODE_LOGS_DIR: ${{ github.workspace }}/artifacts/logs | |
CURSORLESS_REPO_ROOT: ${{ github.workspace }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: package.json | |
cache: pnpm | |
- run: mkdir -p "${{ env.VSCODE_CRASH_DIR }}" "${{ env.VSCODE_LOGS_DIR }}" | |
shell: bash | |
- run: pnpm --color install | |
- run: pnpm --color compile | |
- run: pnpm --color --filter '!cursorless-org' --filter '!cursorless-org-*' build | |
- run: xvfb-run -a pnpm --color test | |
if: runner.os == 'Linux' | |
- run: pnpm --color test | |
if: runner.os != 'Linux' | |
- name: Create vscode dist that can be installed locally | |
run: pnpm -F @cursorless/cursorless-vscode populate-dist --local-install | |
if: runner.os == 'Linux' && matrix.vscode_version == 'stable' | |
- name: Test create vsix | |
id: createVsix | |
uses: HaaLeo/publish-vscode-extension@v1 | |
with: | |
pat: none | |
packagePath: packages/cursorless-vscode/dist | |
dryRun: true | |
- run: mv ${{ steps.createVsix.outputs.vsixPath }} cursorless-development.vsix | |
if: runner.os == 'Linux' && matrix.vscode_version == 'stable' | |
- name: Upload vsix | |
uses: actions/upload-artifact@v3 | |
if: runner.os == 'Linux' && matrix.vscode_version == 'stable' | |
with: | |
name: vsix | |
path: cursorless-development.vsix | |
- name: Archive logs | |
uses: actions/upload-artifact@v3 | |
with: | |
name: logs | |
path: ${{ env.VSCODE_LOGS_DIR }} | |
if: failure() | |
- name: Archive dumps | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dumps | |
path: ${{ env.VSCODE_CRASH_DIR }} | |
if: failure() | |
- name: Forbid TODOs | |
run: ./scripts/forbid-todo.sh |