Skip to content

Commit

Permalink
fix: more output changes
Browse files Browse the repository at this point in the history
  • Loading branch information
acrois committed Feb 4, 2024
1 parent a526283 commit 6c1b2a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:

name: output-${{ steps.setup-env.outputs.TEST_NAME }}
path: ./output
4 changes: 2 additions & 2 deletions tests/pulumi_bucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ await $`pulumi login --local`
const pulumiStackResult = await $`pulumi stack select dev`
if (pulumiStackResult.exitCode !== 0) throw pulumiStackResult.stderr.toString()

const pulumiResults = await $`pulumi up --tracing=file:../output/pulumi-up.trace -v 11 -s dev --yes --non-interactive --logtostderr --logflow`
const pulumiResults = await $`pulumi up -s dev -v 11 --yes --non-interactive --logtostderr --logflow --tracing=file:../output/pulumi-up.trace`

const resultsOut = pulumiResults.stdout.toString()
await Bun.write('../output/pulumi-up_stdout.log', resultsOut);
const resultsErr = pulumiResults.stderr.toString()
await Bun.write('../output/pulumi-up_stderr.log', resultsErr);

if (pulumiResults.exitCode !== 0) throw pulumiResults.stderr.toString()
if (pulumiResults.exitCode !== 0) throw resultsErr

const bucketName = (await $`pulumi stack output bucket_name`.text()).trim()
console.log(`Checking if S3 bucket ${bucketName} exists...`)
Expand Down

0 comments on commit 6c1b2a8

Please sign in to comment.