devops: create different workflows for different browsers
This commit is contained in:
parent
40ae745db7
commit
cdace02e62
30
.github/workflows/chromium.yml
vendored
Normal file
30
.github/workflows/chromium.yml
vendored
Normal 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
30
.github/workflows/firefox.yml
vendored
Normal 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
|
||||
|
|
@ -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
|
||||
Loading…
Reference in a new issue