mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
49 lines
1010 B
YAML
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
|