Skip to content

Commit

Permalink
enable run of collector's sanity check in CI (#1567)
Browse files Browse the repository at this point in the history
* enable run of collector's sanity check in CI

* use upstream collector repo for checkout action
  • Loading branch information
shirmoran authored Nov 1, 2023
1 parent e0e8b8f commit 7bfc20a
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/pre-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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()
Expand Down

0 comments on commit 7bfc20a

Please sign in to comment.