From 64a3330e0ebec50bd21d68def3b51b58e4d58634 Mon Sep 17 00:00:00 2001 From: Elad Ben-Israel Date: Mon, 13 May 2024 14:00:47 +0300 Subject: [PATCH] update workflow --- .github/workflows/containers-pull.yaml | 9 ++++++++- .github/workflows/containers-release.yaml | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/containers-pull.yaml b/.github/workflows/containers-pull.yaml index 56081310..46f84a9d 100644 --- a/.github/workflows/containers-pull.yaml +++ b/.github/workflows/containers-pull.yaml @@ -24,8 +24,15 @@ jobs: - name: Test run: | #!/bin/sh + if [ -n "$CI" ]; then + snapshot_mode="assert" + else + snapshot_mode="update" + fi + DEBUG=1 wing test - wing test -t tf-aws -s assert containers.test.w + wing test -t tf-aws -s $snapshot_mode containers.test.w + wing test -t tf-aws -s $snapshot_mode containers-with-readiness.test.w working-directory: containers - name: Pack run: wing pack diff --git a/.github/workflows/containers-release.yaml b/.github/workflows/containers-release.yaml index 4fec59d1..962c9673 100644 --- a/.github/workflows/containers-release.yaml +++ b/.github/workflows/containers-release.yaml @@ -27,8 +27,15 @@ jobs: - name: Test run: | #!/bin/sh + if [ -n "$CI" ]; then + snapshot_mode="assert" + else + snapshot_mode="update" + fi + DEBUG=1 wing test - wing test -t tf-aws -s assert containers.test.w + wing test -t tf-aws -s $snapshot_mode containers.test.w + wing test -t tf-aws -s $snapshot_mode containers-with-readiness.test.w working-directory: containers - name: Pack run: wing pack