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

61 lines
1.5 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: 16
3 years ago
- name: Cache node modules
id: cacheNodeModules
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-cacheNodeModules2-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-cacheNodeModules2-
3 years ago
- name: execute `npm ci` (1)
3 years ago
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
run: npm ci
3 years ago
- name: execute `npm ci` (2)
3 years ago
if: ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
run: npm ci --prefix webpack-plugin
3 years ago
- name: Install Playwright
run: npm run playwright-install
- name: Install OS Dependencies for Playwright
run: sudo npm run playwright-install-deps
- name: Check prettier
run: npm run prettier-check
3 years ago
- name: Build
run: npm run release
- name: Run unit tests
run: npm test
3 years ago
- name: Compile webpack plugin
run: npm run compile --prefix webpack-plugin
- name: Package using webpack plugin
run: npm run package-for-smoketest --prefix webpack-plugin
- name: Package using esbuild
run: npm run package-for-smoketest-esbuild
- name: Run smoke test
run: npm run smoketest
- name: Build website
run: npm run build-website