Skip to content

Commit

Permalink
[chore] run upload no matter previous step if the env var is set (#1468)
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme authored Sep 26, 2024
1 parent 7e75700 commit 03e9e69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/functional_test_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
env:
KUBECONFIG: /tmp/kube-config-splunk-otel-collector-chart-functional-testing
KUBE_TEST_ENV: kind
UPDATE_EXPECTED_RESULTS: ${{ github.event.inputs.UPDATE_EXPECTED_RESULTS || 'false' }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -71,12 +72,11 @@ jobs:
- name: run functional tests
env:
K8S_VERSION: ${{ matrix.k8s-version }}
UPDATE_EXPECTED_RESULTS: ${{ github.event.inputs.UPDATE_EXPECTED_RESULTS || 'false' }}
run: |
cd functional_tests
TEARDOWN_BEFORE_SETUP=true UPDATE_EXPECTED_RESULTS=${{ env.UPDATE_EXPECTED_RESULTS }} go test -v -tags ${{ matrix.test-job }}
- name: 'Upload test results'
if: failure() && env.UPDATE_EXPECTED_RESULTS == 'true'
if: always() && env.UPDATE_EXPECTED_RESULTS == 'true'
uses: actions/upload-artifact@v4
with:
name: functional_tests-${{ matrix.test-job }}-${{ matrix.k8s-version }}
Expand Down

0 comments on commit 03e9e69

Please sign in to comment.