fix build and run on os matrix
This commit is contained in:
parent
f7ae8532b9
commit
1fb95726ef
|
@ -20,7 +20,11 @@ jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: windows-latest
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [windows-latest, macos-latest, ubuntu-latest]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Node
|
- name: Set up Node
|
||||||
|
@ -48,7 +52,7 @@ jobs:
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: npm run test
|
run: npm run test
|
||||||
|
|
||||||
- name: Upload test coverage
|
- name: Upload test coverage artifact
|
||||||
uses: actions/upload-artifact@v2-preview
|
uses: actions/upload-artifact@v2-preview
|
||||||
with:
|
with:
|
||||||
name: test-coverage
|
name: test-coverage
|
||||||
|
|
|
@ -74,9 +74,15 @@ module.exports = (config) => {
|
||||||
removeBrowser('Opera');
|
removeBrowser('Opera');
|
||||||
removeBrowser('SafariTechPreview');
|
removeBrowser('SafariTechPreview');
|
||||||
|
|
||||||
if (process.env.APPVEYOR === 'True') {
|
var ci = process.env.CI === 'True' || process.env.CI === 'true';
|
||||||
|
var githubAction = process.env.GITHUB_WORKFLOW != null && process.env.GITHUB_WORKFLOW !== '';
|
||||||
|
var appveyor = process.env.APPVEYOR === 'True';
|
||||||
|
if (githubAction || appveyor) {
|
||||||
removeBrowser('Edge');
|
removeBrowser('Edge');
|
||||||
}
|
}
|
||||||
|
if (githubAction) {
|
||||||
|
removeBrowser('Firefox');
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue