From 794bef02084541daeebb4652b28d3190ed548555 Mon Sep 17 00:00:00 2001 From: Sundar Date: Wed, 31 Mar 2021 17:19:55 +0530 Subject: [PATCH] Added trigger for L2 tests and ran build. (#16) --- .github/workflows/TriggerIntegrationTests.sh | 33 +++++++++++++++++++ .github/workflows/integration-tests.yml | 19 +++++++++++ .../workflows/{test.yml => unit-tests.yml} | 6 ++-- lib/run.js | 6 +++- 4 files changed, 60 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/TriggerIntegrationTests.sh create mode 100644 .github/workflows/integration-tests.yml rename .github/workflows/{test.yml => unit-tests.yml} (83%) diff --git a/.github/workflows/TriggerIntegrationTests.sh b/.github/workflows/TriggerIntegrationTests.sh new file mode 100644 index 0000000..8d9a4ad --- /dev/null +++ b/.github/workflows/TriggerIntegrationTests.sh @@ -0,0 +1,33 @@ +token=$1 +commit=$2 +repository=$3 +prNumber=$4 +frombranch=$5 +tobranch=$6 +patUser=$6 + +getPayLoad() { + cat < { @@ -51,6 +53,7 @@ function getStableKubectlVersion() { }); }); } +exports.getStableKubectlVersion = getStableKubectlVersion; function downloadKubectl(version) { return __awaiter(this, void 0, void 0, function* () { let cachedToolpath = toolCache.find(kubectlToolName, version); @@ -69,6 +72,7 @@ function downloadKubectl(version) { return kubectlPath; }); } +exports.downloadKubectl = downloadKubectl; function run() { return __awaiter(this, void 0, void 0, function* () { let version = core.getInput('version', { 'required': true });