mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 11:35:40 +01:00
42 lines
1 KiB
YAML
42 lines
1 KiB
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
name: CI
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 14
|
|
|
|
- name: Cache node modules
|
|
id: cacheNodeModules
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: '**/node_modules'
|
|
key: ${{ runner.os }}-cacheNodeModules-${{ hashFiles('**/package-lock.json') }}
|
|
restore-keys: ${{ runner.os }}-cacheNodeModules-
|
|
|
|
- name: Install node modules (1)
|
|
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
|
|
run: npm install
|
|
|
|
- name: Install node modules (2)
|
|
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
|
|
run: npm install --prefix monaco-editor-webpack-plugin
|
|
|
|
- name: Check prettier
|
|
run: npm run prettier-check
|
|
|
|
- name: Build
|
|
run: npm run release
|
|
|
|
- name: Run unit tests
|
|
run: npm test
|
|
|
|
- name: Run smoke test
|
|
run: npm run smoketest
|