Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

Commit

Permalink
Remove unused version stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Oct 31, 2019
1 parent 4b2a9b9 commit 0b26266
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 41 deletions.
20 changes: 1 addition & 19 deletions lib/setup-selenium.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,7 @@ const path = __importStar(require("path"));
function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
console.log(`##setup selenium`);
const version = core.getInput("selenium-version", { required: true });
const plat = process.platform;
let arch = "linux";
switch (plat) {
case "win32":
arch = plat;
break;
case "darwin":
arch = "mac64";
break;
default:
case "linux":
arch = "linux64";
}
yield exec.exec(path.join(__dirname, "setup-selenium.sh"), [
version,
arch
]);
yield exec.exec(path.join(__dirname, "setup-selenium.sh"));
}
catch (error) {
core.setFailed(error.message);
Expand Down
3 changes: 0 additions & 3 deletions lib/setup-selenium.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

set -eo pipefail

version=$1
arch=$2

sudo apt-fast install -y xvfb screen google-chrome-stable

wget -c -nc --retry-connrefused --tries=0 https://selenium-release.storage.googleapis.com/3.14/selenium-server-standalone-3.14.0.jar
Expand Down
20 changes: 1 addition & 19 deletions src/setup-selenium.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,7 @@ import * as path from "path";

async function run() {
try {
console.log(`##setup selenium`);
const version = core.getInput("selenium-version", { required: true });
const plat = process.platform;
let arch = "linux";
switch (plat) {
case "win32":
arch = plat;
break;
case "darwin":
arch = "mac64";
break;
default:
case "linux":
arch = "linux64";
}
await exec.exec(path.join(__dirname, "setup-selenium.sh"), [
version,
arch
]);
await exec.exec(path.join(__dirname, "setup-selenium.sh"));
} catch (error) {
core.setFailed(error.message);
}
Expand Down

0 comments on commit 0b26266

Please sign in to comment.