diff --git a/.github/workflows/check-clean-git-state.sh b/.github/workflows/check-clean-git-state.sh deleted file mode 100755 index cd09d4db30..0000000000 --- a/.github/workflows/check-clean-git-state.sh +++ /dev/null @@ -1,6 +0,0 @@ -R=`git status --porcelain | wc -l` -if [ "$R" -ne "0" ]; then - echo "The git repo is not clean after compiling the /build/ folder. Did you forget to commit .js output for .ts files?"; - git status --porcelain - exit 1; -fi diff --git a/.github/workflows/deep-classifier-assign-monitor.yml b/.github/workflows/deep-classifier-assign-monitor.yml deleted file mode 100644 index 9d74e30847..0000000000 --- a/.github/workflows/deep-classifier-assign-monitor.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: "Deep Classifier: Assign Monitor" -on: - issues: - types: [assigned] - -jobs: - main: - runs-on: ubuntu-latest - if: ${{ contains(github.event.issue.labels.*.name, 'triage-needed') }} - steps: - - name: Checkout Actions - uses: actions/checkout@v3 - with: - repository: "microsoft/vscode-github-triage-actions" - ref: stable - path: ./actions - - name: Install Actions - run: npm install --production --prefix ./actions - - name: "Run Classifier: Monitor" - uses: ./actions/classifier-deep/monitor - with: - botName: vscode-triage-bot - token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}} - appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}} diff --git a/.github/workflows/monaco-editor.yml b/.github/workflows/monaco-editor.yml deleted file mode 100644 index 24ea5fea85..0000000000 --- a/.github/workflows/monaco-editor.yml +++ /dev/null @@ -1,91 +0,0 @@ -name: Monaco Editor checks - -on: - push: - branches: - - main - - release/* - pull_request: - branches: - - main - - release/* - -jobs: - main: - name: Monaco Editor checks - runs-on: ubuntu-latest - timeout-minutes: 40 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - steps: - - uses: actions/checkout@v3 - - - uses: actions/setup-node@v2 - with: - node-version: 14 - - - name: Compute node modules cache key - id: nodeModulesCacheKey - run: echo "::set-output name=value::$(node build/azure-pipelines/common/computeNodeModulesCacheKey.js)" - - name: Cache node modules - id: cacheNodeModules - uses: actions/cache@v2 - with: - path: "**/node_modules" - key: ${{ runner.os }}-cacheNodeModules20-${{ steps.nodeModulesCacheKey.outputs.value }} - restore-keys: ${{ runner.os }}-cacheNodeModules20- - - name: Get yarn cache directory path - id: yarnCacheDirPath - if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }} - run: echo "::set-output name=dir::$(yarn cache dir)" - - name: Cache yarn directory - if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }} - uses: actions/cache@v2 - with: - path: ${{ steps.yarnCacheDirPath.outputs.dir }} - key: ${{ runner.os }}-yarnCacheDir-${{ steps.nodeModulesCacheKey.outputs.value }} - restore-keys: ${{ runner.os }}-yarnCacheDir- - - name: Execute yarn - if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }} - env: - PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 - ELECTRON_SKIP_BINARY_DOWNLOAD: 1 - run: yarn --frozen-lockfile --network-timeout 180000 - - - name: Download Playwright - run: yarn playwright-install - - - name: Run Monaco Editor Checks - run: yarn monaco-compile-check - - - name: Editor Distro & ESM Bundle - run: yarn gulp editor-esm-bundle - - - name: Editor ESM sources check - working-directory: ./test/monaco - run: yarn run esm-check - - - name: Typings validation prep - run: | - mkdir typings-test - - - name: Typings validation - working-directory: ./typings-test - run: | - yarn init -yp - ../node_modules/.bin/tsc --init - echo "import '../out-monaco-editor-core';" > a.ts - ../node_modules/.bin/tsc --noEmit - - - name: Package Editor with Webpack - working-directory: ./test/monaco - run: yarn run bundle-webpack - - - name: Compile Editor Tests - working-directory: ./test/monaco - run: yarn run compile - - - name: Run Editor Tests - timeout-minutes: 5 - working-directory: ./test/monaco - run: yarn test diff --git a/.github/workflows/no-yarn-lock-changes.yml b/.github/workflows/no-yarn-lock-changes.yml deleted file mode 100644 index ebd735bf7e..0000000000 --- a/.github/workflows/no-yarn-lock-changes.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Prevent yarn.lock changes in PRs -on: [pull_request] - -jobs: - main: - name: Prevent yarn.lock changes in PRs - runs-on: ubuntu-latest - steps: - - uses: octokit/request-action@v2.x - id: get_permissions - with: - route: GET /repos/microsoft/vscode/collaborators/{username}/permission - username: ${{ github.event.pull_request.user.login }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Set control output variable - id: control - run: | - echo "user: ${{ github.event.pull_request.user.login }}" - echo "role: ${{ fromJson(steps.get_permissions.outputs.data).permission }}" - echo "should_run: ${{ !contains(fromJson('["admin", "write"]'), fromJson(steps.get_permissions.outputs.data).permission) }}" - echo "::set-output name=should_run::${{ !contains(fromJson('["admin", "write"]'), fromJson(steps.get_permissions.outputs.data).permission) }}" - - name: Get file changes - uses: trilom/file-changes-action@ce38c8ce2459ca3c303415eec8cb0409857b4272 - if: ${{ steps.control.outputs.should_run == 'true' }} - - name: Check for yarn.lock changes - if: ${{ steps.control.outputs.should_run == 'true' }} - run: | - cat $HOME/files.json | jq -e 'any(test("yarn\\.lock$")) | not' \ - || (echo "Changes to yarn.lock files aren't allowed in PRs." && exit 1) diff --git a/build/filters.js b/build/filters.js index b7613fe7f5..594741196f 100644 --- a/build/filters.js +++ b/build/filters.js @@ -39,7 +39,7 @@ module.exports.unicodeFilter = [ '!LICENSES.chromium.html', '!**/LICENSE', - '!**/*.{dll,exe,png,bmp,jpg,scpt,cur,ttf,woff,eot,template,ico,icns,opus}', + '!**/*.{dll,exe,png,bmp,jpg,scpt,cur,ttf,woff,eot,template,ico,icns,opus,targets,nupkg}', '!**/test/**', '!**/*.test.ts', '!**/*.{d.ts,json,md}', @@ -65,6 +65,7 @@ module.exports.indentationFilter = [ '**', // except specific files + '!**/*.{dll,exe,png,bmp,jpg,scpt,cur,ttf,woff,eot,template,ico,icns,opus,targets,nupkg}', '!**/ThirdPartyNotices.txt', '!**/LICENSE.{txt,rtf}', '!LICENSES.chromium.html', diff --git a/src/tsconfig.json b/src/tsconfig.json index 9ffe306eee..54366c878b 100644 --- a/src/tsconfig.json +++ b/src/tsconfig.json @@ -9,7 +9,6 @@ "types": [ "keytar", "mocha", - "semver", "sinon", "winreg", "trusted-types",