Add Windows and MacOS to the testing matrix (#8540)

This commit is contained in:
Adrian Serbanescu
2022-10-09 16:32:17 +02:00
committed by GitHub
parent 3cb07e4577
commit bf20569dce
4 changed files with 34 additions and 16 deletions

View File

@ -6,7 +6,10 @@ env:
NODE_VERSION: 16
jobs:
setup:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-2019, macos-latest]
steps:
- name: Check out repository
uses: actions/checkout@v3
@ -29,7 +32,10 @@ jobs:
build:
needs: setup
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-2019, macos-latest]
steps:
- name: Restore setup
uses: actions/cache@v3
@ -137,7 +143,7 @@ jobs:
test:
needs: build
runs-on: ubuntu-latest
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
@ -145,6 +151,13 @@ jobs:
- browser: Chrome1280x1024
- browser: FirefoxTouch
- browser: FirefoxNoTouch
- browser: FirefoxRetina
- browser: Chrome1280x1024
os: windows-2019
- browser: Chrome1280x1024
os: macos-latest
- browser: SafariNative
os: macos-latest
steps:
- name: Restore build
uses: actions/cache@v3

18
package-lock.json generated
View File

@ -24,7 +24,7 @@
"karma-firefox-launcher": "^2.1.2",
"karma-mocha": "^2.0.1",
"karma-rollup-preprocessor": "^7.0.8",
"karma-safari-launcher": "~1.0.0",
"karma-safarinative-launcher": "^1.1.0",
"karma-sinon": "^1.0.5",
"karma-time-stats-reporter": "^0.1.0",
"leafdoc": "^2.3.0",
@ -2491,10 +2491,10 @@
"rollup": ">= 1.0.0"
}
},
"node_modules/karma-safari-launcher": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/karma-safari-launcher/-/karma-safari-launcher-1.0.0.tgz",
"integrity": "sha512-qmypLWd6F2qrDJfAETvXDfxHvKDk+nyIjpH9xIeI3/hENr0U3nuqkxaftq73PfXZ4aOuOChA6SnLW4m4AxfRjQ==",
"node_modules/karma-safarinative-launcher": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/karma-safarinative-launcher/-/karma-safarinative-launcher-1.1.0.tgz",
"integrity": "sha512-vdMjdQDHkSUbOZc8Zq2K5bBC0yJGFEgfrKRJTqt0Um0SC1Rt8drS2wcN6UA3h4LgsL3f1pMcmRSvKucbJE8Qdg==",
"dev": true,
"peerDependencies": {
"karma": ">=0.9"
@ -6604,10 +6604,10 @@
"debounce": "^1.2.0"
}
},
"karma-safari-launcher": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/karma-safari-launcher/-/karma-safari-launcher-1.0.0.tgz",
"integrity": "sha512-qmypLWd6F2qrDJfAETvXDfxHvKDk+nyIjpH9xIeI3/hENr0U3nuqkxaftq73PfXZ4aOuOChA6SnLW4m4AxfRjQ==",
"karma-safarinative-launcher": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/karma-safarinative-launcher/-/karma-safarinative-launcher-1.1.0.tgz",
"integrity": "sha512-vdMjdQDHkSUbOZc8Zq2K5bBC0yJGFEgfrKRJTqt0Um0SC1Rt8drS2wcN6UA3h4LgsL3f1pMcmRSvKucbJE8Qdg==",
"dev": true,
"requires": {}
},

View File

@ -19,7 +19,7 @@
"karma-firefox-launcher": "^2.1.2",
"karma-mocha": "^2.0.1",
"karma-rollup-preprocessor": "^7.0.8",
"karma-safari-launcher": "~1.0.0",
"karma-safarinative-launcher": "^1.1.0",
"karma-sinon": "^1.0.5",
"karma-time-stats-reporter": "^0.1.0",
"leafdoc": "^2.3.0",

View File

@ -32,7 +32,7 @@ module.exports = function (config) {
'karma-expect',
'karma-edge-launcher',
'karma-chrome-launcher',
'karma-safari-launcher',
'karma-safarinative-launcher',
'karma-firefox-launcher',
'karma-time-stats-reporter'
],
@ -88,8 +88,7 @@ module.exports = function (config) {
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - IE (only Windows)
// - SafariNative (only Mac)
browsers: ['Chrome1280x1024'],
customLaunchers: {
@ -111,6 +110,12 @@ module.exports = function (config) {
'dom.w3c_touch_events.enabled': 0
}
},
'FirefoxRetina': {
base: 'FirefoxHeadless',
prefs: {
'layout.css.devPixelsPerPx': 2
}
}
},
concurrency: 1,