diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 0000000..a53ab2d --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,30 @@ +name: Node CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ '8.x' }} + uses: actions/setup-node@v1 + with: + node-version: ${{ '8.x' }} + - name: Start xvfb + run: | + /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & + echo ">>> Started xvfb" + - name: Run Tests + run: | + echo ">>> Compile vscode-test" + yarn && yarn compile + echo ">>> Compiled vscode-test" + cd sample + echo ">>> Run sample integration test" + yarn && yarn compile && yarn test + env: + CI: true + DISPLAY: ':99.0'