From c2c3f980768b4a698634c6e31432c094799f9544 Mon Sep 17 00:00:00 2001 From: Colton Loftus <70598503+C-Loftus@users.noreply.github.com> Date: Wed, 19 Feb 2025 14:53:00 -0500 Subject: [PATCH] add nabu integration tests --- .github/workflows/nabu_integration.yml | 44 ++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/nabu_integration.yml diff --git a/.github/workflows/nabu_integration.yml b/.github/workflows/nabu_integration.yml new file mode 100644 index 0000000..f1efd60 --- /dev/null +++ b/.github/workflows/nabu_integration.yml @@ -0,0 +1,44 @@ +name: Test Nabu Integration + +on: + workflow_dispatch: # Allows manual triggering of the workflow + push: + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + build-and-push-temp-image: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Log in to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Generate Unique Image Tag + id: vars + run: echo "tag=tmp-${{ github.sha }}" >> $GITHUB_ENV + + - name: Build and Push Docker Image + uses: docker/build-push-action@v4 + with: + context: . + push: true + tags: internetofwater/gleaner:${{ env.tag }} + + - name: "Run Geoconnex Scheduler to simulate a full crawl" + uses: internetofwater/nabu@master + with: + gleaner_image: internetofwater/gleaner:${{ env.tag }} + + \ No newline at end of file