mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-21 06:37:36 -04:00
* Fix hard-coded path in electron mock * Disable failfast strategy * Remove path mocking, as it is no longer needed becasuse CI runs on all OSs, and it causes issues with database initialization for unit testing * Update * Update packages/insomnia-app/app/sync/git/__tests__/mem-plugin.test.js Co-authored-by: David Marby <david@dmarby.se> * Update packages/insomnia-app/app/sync/git/__tests__/mem-plugin.test.js Co-authored-by: David Marby <david@dmarby.se> Co-authored-by: David Marby <david@dmarby.se>
41 lines
1019 B
YAML
41 lines
1019 B
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
- master
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
|
|
jobs:
|
|
OS:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
|
steps:
|
|
- name: Checkout branch
|
|
uses: actions/checkout@v1
|
|
- name: Read Node version from .nvmrc
|
|
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
|
|
id: nvm
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ steps.nvm.outputs.NVMRC }}
|
|
- name: Bootstrap packages
|
|
run: npm run bootstrap
|
|
- name: Run tests
|
|
run: npm test
|
|
- name: Build core for smoke tests
|
|
run: npm run app-build:smoke:core
|
|
- name: Build designer for smoke tests
|
|
run: npm run app-build:smoke:designer
|
|
- name: Run core smoke tests
|
|
run: npm run test:smoke:core
|
|
- name: Run designer smoke tests
|
|
run: npm run test:smoke:designer
|