repairs esm and amd build (#4950)

This commit is contained in:
Henning Dieterichs 2025-08-28 13:35:17 +02:00 committed by GitHub
parent f420968fc9
commit e56ad4b588
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
43 changed files with 2302 additions and 856 deletions

View file

@ -5,13 +5,15 @@ on: [push, pull_request]
jobs:
build:
name: CI
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 # pin@v2
with:
node-version: 20
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Cache node modules
id: cacheNodeModules
@ -21,25 +23,48 @@ jobs:
key: ${{ runner.os }}-cacheNodeModules2-${{ hashFiles('**/package-lock.json', '**/package.json') }}
restore-keys: ${{ runner.os }}-cacheNodeModules2-
- name: Install build tools
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: |
sudo apt update -y
sudo apt install -y build-essential pkg-config libx11-dev libx11-xcb-dev libxkbfile-dev libnotify-bin libkrb5-dev
- name: execute `npm ci` (1)
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
run: npm ci
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
run: |
npm ci
- name: Download Playwright
run: npx playwright install --with-deps
- name: execute `npm ci` (2)
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
run: npm ci --prefix webpack-plugin
- name: Install Playwright
run: npm run playwright-install
# <building-from-source>
- name: Setup, Build & Test monaco-editor-core
run: yarn ts-node ./scripts/ci/build-monaco-editor-core-pkg nightly
env:
VSCODE_REF: 'main'
PRERELEASE_VERSION: 'dev-${today}'
- name: Install OS Dependencies for Playwright
run: sudo npm run playwright-install-deps
- name: Link monaco-editor-core
run: npm link
working-directory: ./dependencies/vscode/out-monaco-editor-core
- name: Check prettier
run: npm run prettier-check
- name: Link monaco-editor-core
run: npm link monaco-editor-core
# </building-from-source>
# TODO: prettier formatting
# - name: Check prettier
# run: npm run prettier-check
- name: Build
run: npm run build-monaco-editor
run: npm run build
- name: Run unit tests
run: npm test
@ -63,14 +88,14 @@ jobs:
- name: Run smoke test
run: npm run smoketest
- name: Install website node modules
working-directory: website
run: yarn install --frozen-lockfile
# - name: Install website node modules
# working-directory: website
# run: yarn install --frozen-lockfile
- name: Build website
working-directory: website
run: yarn run build
# - name: Build website
# working-directory: website
# run: yarn run build
- name: Test website
working-directory: website
run: yarn test
# - name: Test website
# working-directory: website
# run: yarn test