Use github action as CI (#35)

Use github action as CI
This commit is contained in:
Razzeee
2019-10-18 01:36:53 +02:00
committed by GitHub
3 changed files with 28 additions and 72 deletions

27
.github/workflows/compile.yaml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: Compile
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
node-version: [12]
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Setup node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm ci and compile
run: |
npm ci
npm run compile
env:
CI: true

2
.gitmodules vendored
View File

@@ -1,3 +1,3 @@
[submodule "server"]
path = server
url = git@github.com:elm-tooling/elm-language-server.git
url = https://github.com/elm-tooling/elm-language-server.git

View File

@@ -1,71 +0,0 @@
jobs:
- job: Windows
pool:
name: Hosted VS2017
demands: npm
steps:
- task: NodeTool@0
displayName: "Use Node 12.x"
inputs:
versionSpec: 12.x
- task: Npm@1
displayName: "Install dependencies"
inputs:
verbose: false
- task: Npm@1
displayName: "Compile sources"
inputs:
command: custom
verbose: false
customCommand: "run compile"
# - script: "node node_modules/vscode/bin/test"
# displayName: "Run tests"
- job: macOS
pool:
name: Hosted macOS
demands: npm
steps:
- task: NodeTool@0
displayName: "Use Node 12.x"
inputs:
versionSpec: 12.x
- task: Npm@1
displayName: "Install dependencies"
inputs:
verbose: false
- task: Npm@1
displayName: "Compile sources"
inputs:
command: custom
verbose: false
customCommand: "run compile"
# - script: "node node_modules/vscode/bin/test"
# displayName: "Run tests"
- job: Linux
pool:
name: Hosted Ubuntu 1604
demands: npm
steps:
- task: NodeTool@0
displayName: "Use Node 12.x"
inputs:
versionSpec: 12.x
- task: Npm@1
displayName: "Install dependencies"
inputs:
verbose: false
- task: Npm@1
displayName: "Compile sources"
inputs:
command: custom
verbose: false
customCommand: "run compile"
- script: |
set -e
/usr/bin/Xvfb :10 -ac >> /tmp/Xvfb.out 2>&1 &
disown -ar
displayName: "Start xvfb"
# - script: "node node_modules/vscode/bin/test"
# displayName: "Run tests"
# env:
# DISPLAY: :10