|
| 1 | +name: CI |
| 2 | + |
| 3 | +on: [push, pull_request] |
| 4 | + |
| 5 | +jobs: |
| 6 | + linux: |
| 7 | + runs-on: ubuntu-latest |
| 8 | + env: |
| 9 | + CHILD_CONCURRENCY: "1" |
| 10 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 11 | + steps: |
| 12 | + - uses: actions/checkout@v1 |
| 13 | + # TODO: rename azure-pipelines/linux/xvfb.init to github-actions |
| 14 | + - run: | |
| 15 | + sudo apt-get update |
| 16 | + sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 dbus xvfb libgtk-3-0 |
| 17 | + sudo cp build/azure-pipelines/linux/xvfb.init /etc/init.d/xvfb |
| 18 | + sudo chmod +x /etc/init.d/xvfb |
| 19 | + sudo update-rc.d xvfb defaults |
| 20 | + sudo service xvfb start |
| 21 | + name: Setup Build Environment |
| 22 | + - uses: actions/setup-node@v1 |
| 23 | + with: |
| 24 | + node-version: 10 |
| 25 | + # TODO: cache node modules |
| 26 | + - run: yarn --frozen-lockfile |
| 27 | + name: Install Dependencies |
| 28 | + - run: yarn electron x64 |
| 29 | + name: Download Electron |
| 30 | + - run: yarn gulp hygiene --skip-tslint |
| 31 | + name: Run Hygiene Checks |
| 32 | + - run: yarn gulp tslint |
| 33 | + name: Run TSLint Checks |
| 34 | + - run: yarn monaco-compile-check |
| 35 | + name: Run Monaco Editor Checks |
| 36 | + - run: yarn compile |
| 37 | + name: Compile Sources |
| 38 | + - run: yarn download-builtin-extensions |
| 39 | + name: Download Built-in Extensions |
| 40 | + - run: DISPLAY=:10 ./scripts/test.sh --tfs "Unit Tests" |
| 41 | + name: Run Unit Tests |
| 42 | + - run: DISPLAY=:10 ./scripts/test-integration.sh --tfs "Integration Tests" |
| 43 | + name: Run Integration Tests |
| 44 | + |
| 45 | + windows: |
| 46 | + runs-on: windows-2016 |
| 47 | + env: |
| 48 | + CHILD_CONCURRENCY: "1" |
| 49 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 50 | + steps: |
| 51 | + - uses: actions/checkout@v1 |
| 52 | + - uses: actions/setup-node@v1 |
| 53 | + with: |
| 54 | + node-version: 10 |
| 55 | + - uses: actions/setup-python@v1 |
| 56 | + with: |
| 57 | + python-version: '2.x' |
| 58 | + - run: yarn --frozen-lockfile |
| 59 | + name: Install Dependencies |
| 60 | + - run: yarn electron |
| 61 | + name: Download Electron |
| 62 | + - run: yarn gulp hygiene --skip-tslint |
| 63 | + name: Run Hygiene Checks |
| 64 | + - run: yarn gulp tslint |
| 65 | + name: Run TSLint Checks |
| 66 | + - run: yarn monaco-compile-check |
| 67 | + name: Run Monaco Editor Checks |
| 68 | + - run: yarn compile |
| 69 | + name: Compile Sources |
| 70 | + - run: yarn download-builtin-extensions |
| 71 | + name: Download Built-in Extensions |
| 72 | + - run: .\scripts\test.bat --tfs "Unit Tests" |
| 73 | + name: Run Unit Tests |
| 74 | + - run: .\scripts\test-integration.bat --tfs "Integration Tests" |
| 75 | + name: Run Integration Tests |
| 76 | + |
| 77 | + darwin: |
| 78 | + runs-on: macos-latest |
| 79 | + env: |
| 80 | + CHILD_CONCURRENCY: "1" |
| 81 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 82 | + steps: |
| 83 | + - uses: actions/checkout@v1 |
| 84 | + - uses: actions/setup-node@v1 |
| 85 | + with: |
| 86 | + node-version: 10 |
| 87 | + - run: yarn --frozen-lockfile |
| 88 | + name: Install Dependencies |
| 89 | + - run: yarn electron x64 |
| 90 | + name: Download Electron |
| 91 | + - run: yarn gulp hygiene --skip-tslint |
| 92 | + name: Run Hygiene Checks |
| 93 | + - run: yarn gulp tslint |
| 94 | + name: Run TSLint Checks |
| 95 | + - run: yarn monaco-compile-check |
| 96 | + name: Run Monaco Editor Checks |
| 97 | + - run: yarn compile |
| 98 | + name: Compile Sources |
| 99 | + - run: yarn download-builtin-extensions |
| 100 | + name: Download Built-in Extensions |
| 101 | + - run: ./scripts/test.sh --tfs "Unit Tests" |
| 102 | + name: Run Unit Tests |
| 103 | + - run: ./scripts/test-integration.sh --tfs "Integration Tests" |
| 104 | + name: Run Integration Tests |
0 commit comments