Add matrix and remove double bootstrapping from insomnia-components (#2550)

This commit is contained in:
Opender Singh authored and GitHub committed 2020-08-26 08:45:58 +12:00
1 parent 013bbedf23
commit 567ee026c4
2 files changed
+6 -53

No files matched your search

+5 -51
View File
@@ -11,57 +11,11 @@ on:
- synchronize
jobs:
Mac:
name: Test Mac
runs-on: macos-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
Windows:
name: Test Windows
runs-on: windows-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
Linux:
name: Test Linux
runs-on: ubuntu-latest
OS:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- name: Checkout branch
uses: actions/checkout@v1
+1 -2
View File
@@ -13,9 +13,8 @@
"watch": "webpack --config webpack/webpack.dev.js --watch",
"build-storybook": "build-storybook --quiet",
"storybook": "start-storybook --port 3223",
"bootstrap": "npm run convert-svg && npm run build",
"convert-svg": "rimraf assets/svgr && svgr --out-dir assets/svgr assets && rimraf assets/svgr/index.js",
"prepublish": "npm run convert-svg && npm run build"
"prepare": "npm run convert-svg && npm run build"
},
"devDependencies": {
"@babel/core": "^7.7.7",