diff --git a/.github/workflows/pre-main.yaml b/.github/workflows/pre-main.yaml index ca4a99dd2..e12a9b943 100644 --- a/.github/workflows/pre-main.yaml +++ b/.github/workflows/pre-main.yaml @@ -355,6 +355,18 @@ jobs: env: IMAGE_TAG: ${TNF_IMAGE_TAG} + # Prepare collector to be used when running smoke tests + - name: Check out `Collector` + uses: actions/checkout@v4 + with: + repository: test-network-function/collector + path: collector + + - name: Deploy collector and mysql + uses: ./collector/.github/actions/prepare-collector-for-use + with: + working_directory: collector + # Clean up unused container image layers. We need to filter out a possible error return code # from docker with "|| true" as some images might still be used by running kind containers and # won't be removed. @@ -376,23 +388,11 @@ jobs: - name: 'Test: Run Smoke Tests in a TNF container' run: TNF_LOG_LEVEL=${TNF_SMOKE_TESTS_LOG_LEVEL} TNF_ENABLE_DATA_COLLECTION=true ./run-tnf-container.sh ${{ env.TESTING_CMD_PARAMS }} -l "${SMOKE_TESTS_GINKGO_LABELS_FILTER}" - # Prepare collector to be used when running smoke tests - - name: Check out `Collector` - uses: actions/checkout@v4 - with: - repository: test-network-function/collector - path: collector - - - name: Deploy collector and mysql - uses: ./collector/.github/actions/prepare-collector-for-use + - name: Run sanity check on collector + uses: ./collector/.github/actions/run-sanity-check with: working_directory: collector - # - name: Run sanity check on collector - # uses: ./collector/.github/actions/run-sanity-check - # with: - # working_directory: collector - - name: Upload container test results as an artifact uses: actions/upload-artifact@v3 if: always()