diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b815f38f..8f392428 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,7 +54,9 @@ jobs: container: image: jsii/superchain:1-buster-slim-node16 self-mutation: - needs: zipper + needs: + - build + - zipper runs-on: ubuntu-latest permissions: contents: write @@ -88,7 +90,9 @@ jobs: git commit -s -m "chore: self mutation" git push origin HEAD:${{ github.event.pull_request.head.ref }} package-js: - needs: zipper + needs: + - build + - zipper runs-on: ubuntu-latest permissions: {} if: "! needs.build.outputs.self_mutation_happened" diff --git a/.projenrc.js b/.projenrc.js index ee427aba..4ee01a63 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -90,7 +90,10 @@ fixme.forEach((wf) => { container: { image: 'jsii/superchain:1-buster-slim-node16' }, }; } - wf.jobs[key] = { ...wf.jobs[key], needs: 'zipper' }; + wf.jobs[key] = { + ...wf.jobs[key], + needs: [...(wf.jobs[key].needs || []), 'zipper'], + }; }); wf.addJob('gobuild', { name: 'gobuild', diff --git a/scripts/lambda-test-update.sh b/scripts/lambda-test-update.sh new file mode 100755 index 00000000..238a6c61 --- /dev/null +++ b/scripts/lambda-test-update.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +BASEPATH=$(git rev-parse --show-toplevel) +cd "$BASEPATH/lambda" +UPDATE_SNAPS=true go test -v \ No newline at end of file diff --git a/scripts/lambda-test.sh b/scripts/lambda-test.sh new file mode 100755 index 00000000..40e10a0b --- /dev/null +++ b/scripts/lambda-test.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +BASEPATH=$(git rev-parse --show-toplevel) +cd "$BASEPATH/lambda" +UPDATE_SNAPS=true go test -v \ No newline at end of file