Skip to content

Bump actions/upload-artifact from 4 to 6 #4

Bump actions/upload-artifact from 4 to 6

Bump actions/upload-artifact from 4 to 6 #4

Workflow file for this run

name: Monaco Editor checks (Windows)
on:
push:
branches:
- main
- release/*
pull_request:
branches:
- main
- release/*
permissions: {}
jobs:
main:
name: Monaco Editor checks
runs-on: windows-latest
timeout-minutes: 40
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
- name: Compute node modules cache key
id: nodeModulesCacheKey
shell: pwsh
run: |
$value = node build/azure-pipelines/common/computeNodeModulesCacheKey.ts
"value=$value" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
- name: Cache node modules
id: cacheNodeModules
uses: actions/cache@v5
with:
path: "**/node_modules"
key: ${{ runner.os }}-cacheNodeModules20-${{ steps.nodeModulesCacheKey.outputs.value }}
restore-keys: ${{ runner.os }}-cacheNodeModules20-
- name: Get npm cache directory path
id: npmCacheDirPath
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
shell: pwsh
run: |
$dir = npm config get cache
"dir=$dir" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
- name: Cache npm directory
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
uses: actions/cache@v5
with:
path: ${{ steps.npmCacheDirPath.outputs.dir }}
key: ${{ runner.os }}-npmCacheDir-${{ steps.nodeModulesCacheKey.outputs.value }}
restore-keys: ${{ runner.os }}-npmCacheDir-
# ❌ Removido: Install system dependencies (apt, sudo, etc.) — isso era só Linux
- name: Execute npm
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
run: |
npm ci
- name: Download Playwright
run: npm run playwright-install
- name: Run Monaco Editor Checks
run: npm run monaco-compile-check
- name: Editor Distro & ESM
run: npm run gulp editor-distro
- name: Editor ESM sources check
working-directory: ./test/monaco
run: npm run esm-check
- name: Typings validation prep
shell: pwsh
run: |
New-Item -ItemType Directory -Force -Path typings-test
- name: Typings validation
working-directory: ./typings-test
shell: pwsh
run: |
npm init -y
npx tsc --init
"import '../out-monaco-editor-core';" | Out-File -FilePath a.ts -Encoding utf8
npx tsc --noEmit
- name: Package Editor with Webpack
working-directory: ./test/monaco
run: npm run bundle-webpack
- name: Compile Editor Tests
working-directory: ./test/monaco
run: npm run compile
- name: Run Editor Tests
timeout-minutes: 5
working-directory: ./test/monaco
run: npm run test