Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Wiesner committed May 12, 2023
2 parents 6b53c47 + 50eaa61 commit a260713
Showing 1 changed file with 38 additions and 5 deletions.
43 changes: 38 additions & 5 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,55 @@ jobs:
--namespace sealed-secrets \
--create-namespace \
--atomic
- name: Install sealed-secrets-web with yaml format
- name: Install sealed-secrets-web with yaml format In-Cluster
run: ./testdata/e2e/installSealedSecretsWebChart.sh yaml "" "sealed-secrets" "sealed-secrets"

- name: Install sealed-secrets-web with json format and cert URL
- name: 🏠 Install sealed-secrets-web with json format In-Cluster
run: |
helm delete sealed-secrets-web --namespace sealed-secrets-web
./testdata/e2e/installSealedSecretsWebChart.sh json ""
- name: 🏠 Run Tests In-Cluster
id: run_tests_in_cluster
# continue on error to show logs
continue-on-error: true
working-directory: testdata/e2e
run: ./runTests.sh

- name: 🏠 Print logs In-Cluster
run: |
echo '🏠 Pod logs (json format In-Cluster)' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
kubectl logs -n sealed-secrets-web -l app.kubernetes.io/instance=sealed-secrets-web >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
- name: 🏠 Fail if 'Run Tests In-Cluster' failed
if: steps.run_tests_in_cluster.outcome=='failure'
run: |
echo "Step 'Run Tests In-Cluster' failed: Check 'Run Tests In-Cluster' and 'Print logs In-Cluster' as well as the job summary for errors"
exit 1
- name: πŸ” Install sealed-secrets-web with json format and cert URL
run: |
helm delete sealed-secrets-web --namespace sealed-secrets-web
./testdata/e2e/installSealedSecretsWebChart.sh json http://sealed-secrets.sealed-secrets.svc:8080/v1/cert.pem
- name: Run Tests
- name: πŸ” Run Tests Cert-URL
id: run_tests_certURL
# continue on error to show logs
continue-on-error: true
working-directory: testdata/e2e
run: ./runTests.sh

- name: Print logs
- name: πŸ” Print logs Cert-URL
run: |
echo 'Pod logs (json format and cert URL)' >> $GITHUB_STEP_SUMMARY
echo 'πŸ” Pod logs (json format and Cert-URL)' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
kubectl logs -n sealed-secrets-web -l app.kubernetes.io/instance=sealed-secrets-web >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
- name: πŸ” Fail if 'Run Tests Cert-URL' failed
if: steps.run_tests_certURL.outcome=='failure'
run: |
echo "Step 'Run Tests Cert-URL' failed: Check 'Run Tests Cert-URL' and 'Print logsCert-URL' as well as the job summary for errors"
exit 1

0 comments on commit a260713

Please sign in to comment.