vscode/.github/workflows/rich-navigation.yml.off

40 lines
980 B
Plaintext
Raw Normal View History

name: "Rich Navigation Indexing"
on:
workflow_dispatch:
push:
branches:
2021-02-15 03:10:24 +08:00
- main
2021-09-03 02:47:18 +08:00
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
richnav:
runs-on: windows-2022
steps:
2022-03-24 01:21:25 +08:00
- uses: actions/checkout@v3
2022-10-21 21:14:39 +08:00
- uses: actions/cache@v3
2020-11-24 18:44:18 +08:00
id: caching-stage
name: Cache VS Code dependencies
with:
path: node_modules
feat: switch to npm as default package manager (#226927) * feat: move from yarn to npm * chore: skip yarn.lock files * fix: playwright download * chore: fix compile and hygiene * chore: bump vsce@2.17.0 Refs https://github.com/microsoft/vscode-vsce/commit/8b49e9dfdf909ad3af2b9ec9c825f5b501f6d75e * test: update results for bat and sh colorizer tests * fix: add missing lock files for windows * fix: switch to legacy-peer-deps * chore: update markdown-it@14.1.0 Refs https://github.com/markdown-it/markdown-it/commit/737c95a12976357df99652e4b51d831cac4a75aa esbuild step in extensions-ci-pr was previously using markdown-it from root which had userland punycode and was able to compile successfully. * ci: increase pr timeout for windows integration tests * chore: fix product build * build: ignore extension dev dependency for rcedit * build: fix working directory inside container * build: fix dependency generation * npm: update dependencies * ci: use global npmrc * ci: update cache * ci: setup global npmrc for private npm auth * build: fix extension bundling * chore: sync npm dependencies * ci: debug env variables for container * ci: fix win32 cli pipeline * build: fix npmrc config usage for build/ and remote/ dirs * fix: windows build * fix: container builds * fix: markdown-language-features tests and bundling ``` [03:58:22] Error: Command failed: /Users/demohan/.nvm/versions/node/v20.15.1/bin/node /Users/demohan/github/vscode/extensions/markdown-language-features/esbuild-notebook.js --outputRoot /Users/demohan/github/vscode/.build/extensions/markdown-language-features ✘ [ERROR] Could not resolve "punycode" extensions/markdown-language-features/node_modules/markdown-it/lib/index.js:14:27: 14 │ var punycode = require('punycode'); ╵ ~~~~~~~~~~ The package "punycode" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error. ``` Adds userland package based on https://github.com/markdown-it/markdown-it/commit/beed9aee2c1b44819afc25d485e86a6c699b6ef0 * fix: container builds for distro * chore: update yarn occurrences * fixup! chore: bump vsce@2.17.0 Uses the closest version to `main` branch that does not include https://github.com/microsoft/vscode-vsce/commit/d3cc84cdec99b8e9f24be63d1a2a54abe908f68b while still having the fix https://github.com/microsoft/vscode-vsce/commit/8b49e9dfdf909ad3af2b9ec9c825f5b501f6d75e * chore: sync npm dependencies * chore: sync npm dependencies * chore: sync npm dependencies * chore: throw error when yarn is used for installation * chore: add review feedback * chore: switch exec => run where needed * chore: npm sync dependencies * fix: markdown-language-features bundling ``` ✘ [ERROR] Could not resolve "punycode" extensions/markdown-language-features/node_modules/markdown-it/lib/index.js:14:27: 14 │ var punycode = require('punycode'); ╵ ~~~~~~~~~~ The package "punycode" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error. ``` Adds missing userland package based on markdown-it/markdown-it@beed9ae, can be removed once we update markdown-it >= 14.1.0 * ci: rename no-yarn-lock-changes.yml * chore: sync npm dependencies * ci: restore no-yarn-lock-changes.yml We can disable it in a separate PR to keep the required checks happy and also need workflow edit perms. * chore: sync npm dependencies * ci: rebuild cache * ci: fix no-package-lock-changes.yml * chore: bump distro * chore: rm yarn.lock files * chore: rm yarn.lock files without dependencies * chore: add vscode-selfhost-import-aid to postinstall dirs * chore: bump distro
2024-09-06 21:18:02 +08:00
key: ${{ runner.os }}-dependencies-${{ hashfiles('package-lock.json') }}
2020-11-24 18:44:18 +08:00
restore-keys: ${{ runner.os }}-dependencies-
2022-05-30 22:53:07 +08:00
- uses: actions/setup-node@v3
2020-11-24 18:44:18 +08:00
with:
node-version-file: .nvmrc
2020-11-24 18:44:18 +08:00
- name: Install dependencies
if: steps.caching-stage.outputs.cache-hit != 'true'
feat: switch to npm as default package manager (#226927) * feat: move from yarn to npm * chore: skip yarn.lock files * fix: playwright download * chore: fix compile and hygiene * chore: bump vsce@2.17.0 Refs https://github.com/microsoft/vscode-vsce/commit/8b49e9dfdf909ad3af2b9ec9c825f5b501f6d75e * test: update results for bat and sh colorizer tests * fix: add missing lock files for windows * fix: switch to legacy-peer-deps * chore: update markdown-it@14.1.0 Refs https://github.com/markdown-it/markdown-it/commit/737c95a12976357df99652e4b51d831cac4a75aa esbuild step in extensions-ci-pr was previously using markdown-it from root which had userland punycode and was able to compile successfully. * ci: increase pr timeout for windows integration tests * chore: fix product build * build: ignore extension dev dependency for rcedit * build: fix working directory inside container * build: fix dependency generation * npm: update dependencies * ci: use global npmrc * ci: update cache * ci: setup global npmrc for private npm auth * build: fix extension bundling * chore: sync npm dependencies * ci: debug env variables for container * ci: fix win32 cli pipeline * build: fix npmrc config usage for build/ and remote/ dirs * fix: windows build * fix: container builds * fix: markdown-language-features tests and bundling ``` [03:58:22] Error: Command failed: /Users/demohan/.nvm/versions/node/v20.15.1/bin/node /Users/demohan/github/vscode/extensions/markdown-language-features/esbuild-notebook.js --outputRoot /Users/demohan/github/vscode/.build/extensions/markdown-language-features ✘ [ERROR] Could not resolve "punycode" extensions/markdown-language-features/node_modules/markdown-it/lib/index.js:14:27: 14 │ var punycode = require('punycode'); ╵ ~~~~~~~~~~ The package "punycode" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error. ``` Adds userland package based on https://github.com/markdown-it/markdown-it/commit/beed9aee2c1b44819afc25d485e86a6c699b6ef0 * fix: container builds for distro * chore: update yarn occurrences * fixup! chore: bump vsce@2.17.0 Uses the closest version to `main` branch that does not include https://github.com/microsoft/vscode-vsce/commit/d3cc84cdec99b8e9f24be63d1a2a54abe908f68b while still having the fix https://github.com/microsoft/vscode-vsce/commit/8b49e9dfdf909ad3af2b9ec9c825f5b501f6d75e * chore: sync npm dependencies * chore: sync npm dependencies * chore: sync npm dependencies * chore: throw error when yarn is used for installation * chore: add review feedback * chore: switch exec => run where needed * chore: npm sync dependencies * fix: markdown-language-features bundling ``` ✘ [ERROR] Could not resolve "punycode" extensions/markdown-language-features/node_modules/markdown-it/lib/index.js:14:27: 14 │ var punycode = require('punycode'); ╵ ~~~~~~~~~~ The package "punycode" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error. ``` Adds missing userland package based on markdown-it/markdown-it@beed9ae, can be removed once we update markdown-it >= 14.1.0 * ci: rename no-yarn-lock-changes.yml * chore: sync npm dependencies * ci: restore no-yarn-lock-changes.yml We can disable it in a separate PR to keep the required checks happy and also need workflow edit perms. * chore: sync npm dependencies * ci: rebuild cache * ci: fix no-package-lock-changes.yml * chore: bump distro * chore: rm yarn.lock files * chore: rm yarn.lock files without dependencies * chore: add vscode-selfhost-import-aid to postinstall dirs * chore: bump distro
2024-09-06 21:18:02 +08:00
run: npm ci
2020-11-24 18:44:18 +08:00
env:
chore: update to Electron 32 (#218245) * chore: update electron@31.0.1 * chore: bump electron@31.1.0 * chore: update sysroot download url * chore: bump electron@31.3.0 * chore: update rpm deps for arm64 * chore: bump electron@31.4.0 * chore: bump electron@32.0.0 * fix: compile stage * fix: install on windows * fix: override node-addon-api to support c++20 with gcc-11 Brings in https://github.com/nodejs/node-addon-api/commit/fed13534c595c52fdd2cbf64d7bffe83de74ef35 to support compilation with gcc>=11 * ci: use gnu++2a for gcc <=9 * ci: fix sdl pipeline * ci: web stage * ci: fix alpine stage * ci: fix legacy server stage * fix: node-addon-api resolution for remote * ci: fix legacy arm stage * chore: sync npm dependencies * chore: bump electron@32.0.1 * ci: fix monaco editor checks * ci: fix legacy server stage * ci: possible concurrent execution * ci: use foreground scripts on windows * chore: bump electron@32.0.2 * fix: compilation Refs https://github.com/electron/electron/commit/204011c3f2bfad1b6b2c9544932bf60b162be05f * Revert "wco - hardcode devtools location on Linux (#227084)" This reverts commit dfb96d11d39aa732fcb2883cd02aae7e35ccff30. * chore: bump electron@32.1.2 * ci: remove workaround for missing c++20 flags * ci: use gnu++2a for gcc <=9 * chore: bump distro * ci: use gnu++17 for legacy arm servers * fixup! override node-addon-api to support c++20 with gcc-11 Scope to only the affected package versions * chore: bump @vscode/policy-watcher * chore: bump @vscode/sqlite3 * chore: bump node.js v20.17.0 * chore: bump distro * chore: update @vscode/windows-ca-certs * chore: update builds for electron@32.1.2 * chore: bump distro * chore: bump dependencies * ci: fix arm legacy servers
2024-10-04 18:19:06 +08:00
npm_config_foreground_scripts: "true"
2020-11-24 18:44:18 +08:00
- uses: microsoft/RichCodeNavIndexer@v0.1
with:
languages: typescript
repo-token: ${{ secrets.GITHUB_TOKEN }}
configFiles: .lsifrc.json
2020-11-24 18:44:18 +08:00
continue-on-error: true