tests: Switch from Travis to Github Actions

Travis placed an unnecessary breaking restriction on our tests and failed to respond within 72 hours to our complaint.  This has forced us to introduce Github Actions to manage our testing.  This is hopefully a temporary measure while Travis either gets itself together or we find a non-Github requirement.
This commit is contained in:
webzwo0i 2020-11-24 19:12:41 +01:00 committed by GitHub
parent 6665c4693f
commit b71b606774
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 291 additions and 1 deletions

View file

@ -13,7 +13,12 @@ var allTestsPassed = true;
// overwrite the default exit code
// in case not all worker can be run (due to saucelabs limits), `queue.drain` below will not be called
// and the script would silently exit with error code 0
process.exitCode = 1;
process.exitCode = 2;
process.on('exit', (code) => {
if (code === 2){
console.log("\x1B[31mFAILED\x1B[39m Not all saucelabs runner have been started.");
}
})
var sauceTestWorker = async.queue(function (testSettings, callback) {
var browser = wd.promiseChainRemote(config.host, config.port, config.username, config.accessKey);