mirror of
https://github.com/material-components/material-web.git
synced 2026-01-09 07:21:09 +08:00
remove saucelabs run from material-web, it is not needed
This commit is contained in:
parent
2c16eda6b3
commit
f7cd8587c3
15
.github/workflows/tests.yml
vendored
15
.github/workflows/tests.yml
vendored
@ -29,18 +29,3 @@ jobs:
|
||||
|
||||
- name: Compile test TypeScript
|
||||
run: npm run build:tests
|
||||
|
||||
- name: Unit tests
|
||||
env:
|
||||
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
|
||||
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
|
||||
run: |
|
||||
# Don't run Sauce from a forked repo, since the code may not be trusted
|
||||
# and therefore secrets like the Sauce password are not available.
|
||||
# GITHUB_HEAD_REF is only defined when building a fork.
|
||||
if [ ! "$GITHUB_HEAD_REF" ]; then
|
||||
export USE_SAUCE=true
|
||||
export SAUCE_BUILD_ID=mwc-tests-${GITHUB_EVENT_NAME}-${GITHUB_ACTION}-${GITHUB_SHA}
|
||||
export SAUCE_TUNNEL_ID=${SAUCE_BUILD_ID}-tunnel
|
||||
fi
|
||||
npm test
|
||||
|
||||
@ -77,61 +77,4 @@ module.exports = function(config) {
|
||||
'FirefoxHeadless',
|
||||
],
|
||||
});
|
||||
|
||||
if (process.env.USE_SAUCE) {
|
||||
if (!process.env.SAUCE_USERNAME || !process.env.SAUCE_ACCESS_KEY) {
|
||||
throw new Error(
|
||||
'SAUCE_USERNAME and SAUCE_ACCESS_KEY must be set with USE_SAUCE')
|
||||
}
|
||||
|
||||
const SAUCE_LAUNCHERS = {
|
||||
'sl-edge': {
|
||||
base: 'SauceLabs',
|
||||
browserName: 'microsoftedge',
|
||||
version: 'latest',
|
||||
platform: 'Windows 10',
|
||||
},
|
||||
'sl-ie': {
|
||||
base: 'SauceLabs',
|
||||
browserName: 'internet explorer',
|
||||
version: '11',
|
||||
platform: 'Windows 8.1',
|
||||
},
|
||||
'sl-safari-14': {
|
||||
base: 'SauceLabs',
|
||||
browserName: 'safari',
|
||||
version: '14',
|
||||
platform: 'macOS 11.00',
|
||||
},
|
||||
'sl-safari-13': {
|
||||
base: 'SauceLabs',
|
||||
browserName: 'safari',
|
||||
version: '13',
|
||||
platform: 'macOS 10.15',
|
||||
},
|
||||
// 'sl-chrome-41': {
|
||||
// base: 'SauceLabs',
|
||||
// browserName: 'chrome',
|
||||
// version: '41',
|
||||
// platform: 'Linux'
|
||||
// },
|
||||
};
|
||||
|
||||
config.set({
|
||||
sauceLabs: {
|
||||
idleTimeout: 600,
|
||||
testName: 'MWC Unit Tests',
|
||||
build: process.env.SAUCE_BUILD_ID,
|
||||
tunnelIdentifier: process.env.SAUCE_TUNNEL_ID,
|
||||
},
|
||||
// Attempt to de-flake Sauce Labs tests on TravisCI.
|
||||
transports: ['polling'],
|
||||
browserDisconnectTolerance: 1,
|
||||
reporters: ['saucelabs', 'mocha'],
|
||||
|
||||
// TODO(aomarks) Update the browser versions here.
|
||||
customLaunchers: SAUCE_LAUNCHERS,
|
||||
browsers: [...config.browsers, ...Object.keys(SAUCE_LAUNCHERS)],
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user