devops: create different workflows for different browsers

This commit is contained in:
Andrey Lushnikov 2019-12-11 17:29:19 -08:00
parent 40ae745db7
commit cdace02e62
3 changed files with 61 additions and 3 deletions

30
.github/workflows/chromium.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Chromium Tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-18.04
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: install required packages
run: |
sudo apt-get install xvfb
- name: npm install, build, and test
run: |
npm install
npm run build
xvfb-run --auto-servernum npm run unit
env:
CI: true

30
.github/workflows/firefox.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Firefox Tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-18.04
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: install required packages
run: |
sudo apt-get install xvfb
- name: npm install, build, and test
run: |
npm install
npm run build
xvfb-run --auto-servernum npm run funit
env:
CI: true

View file

@ -1,4 +1,4 @@
name: Node CI
name: WebKit Tests
on: [push, pull_request]
@ -26,8 +26,6 @@ jobs:
run: |
npm install
npm run build
xvfb-run --auto-servernum npm run unit
xvfb-run --auto-servernum npm run funit
xvfb-run --auto-servernum npm run wunit
env:
CI: true