提交 bedacf4e 编写于 作者: J João Moreno

enable monaco editor in ci workflow

上级 060e2307
...@@ -2,123 +2,120 @@ name: CI ...@@ -2,123 +2,120 @@ name: CI
on: on:
push: push:
branches-ignore: branches:
- '**' - master
# push: - release/*
# branches: pull_request:
# - master branches:
# - release/* - master
# pull_request: - release/*
# branches:
# - master
# - release/*
jobs: jobs:
linux: # linux:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
env: # env:
CHILD_CONCURRENCY: "1" # CHILD_CONCURRENCY: "1"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps: # steps:
- uses: actions/checkout@v1 # - uses: actions/checkout@v1
# TODO: rename azure-pipelines/linux/xvfb.init to github-actions # # TODO: rename azure-pipelines/linux/xvfb.init to github-actions
- run: | # - run: |
sudo apt-get update # sudo apt-get update
sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 dbus xvfb libgtk-3-0 libgbm1 # sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 dbus xvfb libgtk-3-0 libgbm1
sudo cp build/azure-pipelines/linux/xvfb.init /etc/init.d/xvfb # sudo cp build/azure-pipelines/linux/xvfb.init /etc/init.d/xvfb
sudo chmod +x /etc/init.d/xvfb # sudo chmod +x /etc/init.d/xvfb
sudo update-rc.d xvfb defaults # sudo update-rc.d xvfb defaults
sudo service xvfb start # sudo service xvfb start
name: Setup Build Environment # name: Setup Build Environment
- uses: actions/setup-node@v1 # - uses: actions/setup-node@v1
with: # with:
node-version: 10 # node-version: 10
# TODO: cache node modules # # TODO: cache node modules
- run: yarn --frozen-lockfile # - run: yarn --frozen-lockfile
name: Install Dependencies # name: Install Dependencies
- run: yarn electron x64 # - run: yarn electron x64
name: Download Electron # name: Download Electron
- run: yarn gulp hygiene # - run: yarn gulp hygiene
name: Run Hygiene Checks # name: Run Hygiene Checks
- run: yarn monaco-compile-check # - run: yarn monaco-compile-check
name: Run Monaco Editor Checks # name: Run Monaco Editor Checks
- run: yarn valid-layers-check # - run: yarn valid-layers-check
name: Run Valid Layers Checks # name: Run Valid Layers Checks
- run: yarn compile # - run: yarn compile
name: Compile Sources # name: Compile Sources
- run: yarn download-builtin-extensions # - run: yarn download-builtin-extensions
name: Download Built-in Extensions # name: Download Built-in Extensions
- run: DISPLAY=:10 ./scripts/test.sh --tfs "Unit Tests" # - run: DISPLAY=:10 ./scripts/test.sh --tfs "Unit Tests"
name: Run Unit Tests (Electron) # name: Run Unit Tests (Electron)
- run: DISPLAY=:10 yarn test-browser --browser chromium # - run: DISPLAY=:10 yarn test-browser --browser chromium
name: Run Unit Tests (Browser) # name: Run Unit Tests (Browser)
- run: DISPLAY=:10 ./scripts/test-integration.sh --tfs "Integration Tests" # - run: DISPLAY=:10 ./scripts/test-integration.sh --tfs "Integration Tests"
name: Run Integration Tests (Electron) # name: Run Integration Tests (Electron)
windows: # windows:
runs-on: windows-2016 # runs-on: windows-2016
env: # env:
CHILD_CONCURRENCY: "1" # CHILD_CONCURRENCY: "1"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps: # steps:
- uses: actions/checkout@v1 # - uses: actions/checkout@v1
- uses: actions/setup-node@v1 # - uses: actions/setup-node@v1
with: # with:
node-version: 10 # node-version: 10
- uses: actions/setup-python@v1 # - uses: actions/setup-python@v1
with: # with:
python-version: '2.x' # python-version: '2.x'
- run: yarn --frozen-lockfile # - run: yarn --frozen-lockfile
name: Install Dependencies # name: Install Dependencies
- run: yarn electron # - run: yarn electron
name: Download Electron # name: Download Electron
- run: yarn gulp hygiene # - run: yarn gulp hygiene
name: Run Hygiene Checks # name: Run Hygiene Checks
- run: yarn monaco-compile-check # - run: yarn monaco-compile-check
name: Run Monaco Editor Checks # name: Run Monaco Editor Checks
- run: yarn valid-layers-check # - run: yarn valid-layers-check
name: Run Valid Layers Checks # name: Run Valid Layers Checks
- run: yarn compile # - run: yarn compile
name: Compile Sources # name: Compile Sources
- run: yarn download-builtin-extensions # - run: yarn download-builtin-extensions
name: Download Built-in Extensions # name: Download Built-in Extensions
- run: .\scripts\test.bat --tfs "Unit Tests" # - run: .\scripts\test.bat --tfs "Unit Tests"
name: Run Unit Tests (Electron) # name: Run Unit Tests (Electron)
- run: yarn test-browser --browser chromium # - run: yarn test-browser --browser chromium
name: Run Unit Tests (Browser) # name: Run Unit Tests (Browser)
- run: .\scripts\test-integration.bat --tfs "Integration Tests" # - run: .\scripts\test-integration.bat --tfs "Integration Tests"
name: Run Integration Tests (Electron) # name: Run Integration Tests (Electron)
darwin: # darwin:
runs-on: macos-latest # runs-on: macos-latest
env: # env:
CHILD_CONCURRENCY: "1" # CHILD_CONCURRENCY: "1"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps: # steps:
- uses: actions/checkout@v1 # - uses: actions/checkout@v1
- uses: actions/setup-node@v1 # - uses: actions/setup-node@v1
with: # with:
node-version: 10 # node-version: 10
- run: yarn --frozen-lockfile # - run: yarn --frozen-lockfile
name: Install Dependencies # name: Install Dependencies
- run: yarn electron x64 # - run: yarn electron x64
name: Download Electron # name: Download Electron
- run: yarn gulp hygiene # - run: yarn gulp hygiene
name: Run Hygiene Checks # name: Run Hygiene Checks
- run: yarn monaco-compile-check # - run: yarn monaco-compile-check
name: Run Monaco Editor Checks # name: Run Monaco Editor Checks
- run: yarn valid-layers-check # - run: yarn valid-layers-check
name: Run Valid Layers Checks # name: Run Valid Layers Checks
- run: yarn compile # - run: yarn compile
name: Compile Sources # name: Compile Sources
- run: yarn download-builtin-extensions # - run: yarn download-builtin-extensions
name: Download Built-in Extensions # name: Download Built-in Extensions
- run: ./scripts/test.sh --tfs "Unit Tests" # - run: ./scripts/test.sh --tfs "Unit Tests"
name: Run Unit Tests (Electron) # name: Run Unit Tests (Electron)
- run: yarn test-browser --browser chromium --browser webkit # - run: yarn test-browser --browser chromium --browser webkit
name: Run Unit Tests (Browser) # name: Run Unit Tests (Browser)
- run: ./scripts/test-integration.sh --tfs "Integration Tests" # - run: ./scripts/test-integration.sh --tfs "Integration Tests"
name: Run Integration Tests (Electron) # name: Run Integration Tests (Electron)
monaco: monaco:
runs-on: ubuntu-latest runs-on: ubuntu-latest
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册