Use matrix for CI

This commit is contained in:
mtkennerly 2020-07-10 22:50:28 -04:00
parent 9673b0868c
commit 16ba39f59a
3 changed files with 18 additions and 8 deletions

View file

@ -1,12 +1,12 @@
const core = require("@actions/core");
const { execSync } = require("child_process");
import * as core from "@actions/core";
import { execSync } from "child_process";
function runCommand(command: string): Buffer {
console.log(`Running command: ${command}`);
return execSync(command);
}
function main() {
function main(): void {
const install = core.getInput("install");
const envVar = core.getInput("env-var");
const command = core.getInput("command");