Skip to content

Commit

Permalink
Add env var for DATAHUB_VERSION to spark smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
david-leifker committed Sep 6, 2023
1 parent 145b283 commit f9dbb70
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/spark-smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,33 @@ concurrency:
cancel-in-progress: true

jobs:
setup:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.tag.outputs.tag }}
slim_tag: ${{ steps.tag.outputs.slim_tag }}
full_tag: ${{ steps.tag.outputs.full_tag }}
unique_tag: ${{ steps.tag.outputs.unique_tag }}
unique_slim_tag: ${{ steps.tag.outputs.unique_slim_tag }}
unique_full_tag: ${{ steps.tag.outputs.unique_full_tag }}
publish: ${{ steps.publish.outputs.publish }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Compute Tag
id: tag
run: |
source .github/scripts/docker_helpers.sh
echo "tag=$(get_tag)" >> $GITHUB_OUTPUT
echo "slim_tag=$(get_tag)-slim" >> $GITHUB_OUTPUT
echo "full_tag=$(get_tag)-full" >> $GITHUB_OUTPUT
echo "unique_tag=$(get_unique_tag)" >> $GITHUB_OUTPUT
echo "unique_slim_tag=$(get_unique_tag)-slim" >> $GITHUB_OUTPUT
echo "unique_full_tag=$(get_unique_tag)-full" >> $GITHUB_OUTPUT
spark-smoke-test:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
Expand All @@ -43,6 +68,8 @@ jobs:
- name: Remove images
run: docker image prune -a -f || true
- name: Smoke test
env:
DATAHUB_VERSION: ${{ needs.setup.outputs.unique_tag }}
run: |
./gradlew :metadata-integration:java:spark-lineage:integrationTest \
-x :datahub-web-react:yarnTest \
Expand Down

0 comments on commit f9dbb70

Please sign in to comment.