You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
monaco-editor/.github/workflows/ci.yml

46 lines
1.1 KiB
YAML

3 years ago
name: CI
on: [push, pull_request]
jobs:
build:
3 years ago
name: CI
3 years ago
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'
3 years ago
key: ${{ runner.os }}-cacheNodeModules-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-cacheNodeModules-
3 years ago
- name: Install node modules (1)
3 years ago
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
run: npm install
3 years ago
- name: Install node modules (2)
3 years ago
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
run: npm install --prefix webpack-plugin
3 years ago
- name: Install Playwright
run: npm run playwright-install
- name: Check prettier
run: npm run prettier-check
3 years ago
- name: Build
run: npm run release
- name: Run unit tests
run: npm test
- name: Run smoke test
run: npm run smoketest