Skip to content

Commit

Permalink
Test + Build Setup with GitHub Actions (#22)
Browse files Browse the repository at this point in the history
* Add workflow build file

* Update install command

* Add no-optional flag to npm installation

* Add optional dependency for Mac

* Only build on windows

* Update workflow file

* Force npm ci

* Try npm i -f

* Mutliple OSs and node-versions

* Run force install

* Remove npm cache

* Force npm ci

* Force npm install to redownload packages
  • Loading branch information
PKief authored May 26, 2021
1 parent 70b0870 commit e73903e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/dev.workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on: [push, pull_request]

name: Build + Test
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
node-version: [14.x]

name: ${{ matrix.os }} (Node.js ${{ matrix.node-version }})

steps:
- name: Checkout 🛎
uses: actions/checkout@v2
- name: Setup Node.js ${{ matrix.node-version }} ⚙
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Run display server 🖥
run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & echo "Started xvfb"
shell: bash
if: ${{ success() && matrix.os == 'ubuntu-latest' }}
- name: Install node_modules 📦
run: npm i -f
- name: Test + Build 🚀
run: |
npm test
npm run vscode:prepublish
env:
DISPLAY: ":99.0"

0 comments on commit e73903e

Please sign in to comment.