remove saucelabs run from material-web, it is not needed

This commit is contained in:
Brian Taylor Vann 2022-04-19 16:42:28 -07:00
parent 2c16eda6b3
commit f7cd8587c3
2 changed files with 0 additions and 72 deletions

View File

@ -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

View File

@ -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)],
});
}
};