diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index ea98a82..6176442 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -39,5 +39,7 @@ jobs: gcloud auth login --brief --cred-file="${{ steps.auth.outputs.credentials_file_path }}" gcloud auth print-access-token | ko login gcr.io --username=oauth2accesstoken --password-stdin - # Deploy! + # Deploy and test - run: ./deploy.sh + - run: ./test.sh + diff --git a/deploy.sh b/deploy.sh index 935b321..a5abd29 100755 --- a/deploy.sh +++ b/deploy.sh @@ -2,7 +2,6 @@ set -euxo pipefail - find cmd -name 'deploy.sh' -print0 | while IFS= read -r -d '' line; do bash -c "$line" diff --git a/test.sh b/test.sh index de17820..18027e2 100755 --- a/test.sh +++ b/test.sh @@ -2,4 +2,7 @@ set -euxo pipefail -time find cmd -name "test.sh" -exec {} \; +find cmd -n 'test.sh' -print0 | + while IFS= read -r -d '' line; do + bash -c "$line" + done