insomnia/.github/workflows/test.yml
2020-05-29 10:45:37 +12:00

49 lines
1010 B
YAML

name: Test
on:
push:
branches:
- develop
- master
pull_request:
types:
- opened
- synchronize
env:
NPM_CONFIG_TARGET: 3.1.13
NPM_CONFIG_ARCH: x64
NPM_CONFIG_TARGET_ARCH: x64
NPM_CONFIG_DISTURL: https://electronjs.org/headers
NPM_CONFIG_RUNTIME: electron
jobs:
Windows:
name: Test Windows
runs-on: windows-latest
steps:
- name: Checkout branch
uses: actions/checkout@v1
- name: Install NodeJS
uses: actions/setup-node@v1
with:
node-version: 10
- name: Bootstrap packages
run: npm run bootstrap
- name: Run tests
run: npm test
Linux:
name: Test Linux
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v1
- name: Install NodeJS
uses: actions/setup-node@v1
with:
node-version: 10
- name: Bootstrap packages
run: npm run bootstrap
- name: Run tests
run: npm test