1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-14 11:57:59 +00:00

Merge pull request #632 from external-secrets/feature/test-e2e

chore: test e2e
This commit is contained in:
paul-the-alien[bot] 2022-01-24 20:40:40 +00:00 committed by GitHub
commit 0046551431
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 32 deletions

View file

@ -49,36 +49,6 @@ jobs:
steps:
# set status=in_progress
- uses: actions/github-script@v1
env:
number: ${{ github.event.client_payload.pull_request.number }}
job: ${{ github.job }}
conclusion: ${{ job.status }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { data: pull } = await github.pulls.get({
...context.repo,
pull_number: process.env.number
});
const ref = pull.head.sha;
console.log("\n\nPR sha: " + ref)
const { data: checks } = await github.checks.listForRef({
...context.repo,
ref
});
console.log("\n\nPR CHECKS: " + checks)
const check = checks.check_runs.filter(c => c.name === process.env.job);
console.log("\n\nPR Filtered CHECK: " + check)
console.log(check)
const { data: result } = await github.checks.update({
...context.repo,
check_run_id: check[0].id,
status: 'in_progress',
});
return result;
# Check out merge commit
- name: Fork based /ok-to-test-managed checkout
uses: actions/checkout@v2

View file

@ -62,8 +62,10 @@ func (c *HelmChart) Install() error {
}
args := []string{"install", c.ReleaseName, c.Chart,
"--debug",
"--wait",
"--timeout", "120s",
"--timeout", "600s",
"-o", "yaml",
"--namespace", c.Namespace,
}
@ -80,7 +82,7 @@ func (c *HelmChart) Install() error {
}
var sout, serr bytes.Buffer
log.Logf("installing chart %s", c.ReleaseName)
log.Logf("installing chart with args: %+q", args)
cmd := exec.Command("helm", args...)
cmd.Stdout = &sout
cmd.Stderr = &serr