diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 60c1364..3e032e7 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,7 +2,6 @@ name: Build Charmed MongoDB rock on: workflow_call: - pull_request: jobs: build: diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index 5514382..a55b41c 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -11,7 +11,9 @@ on: jobs: build: - uses: ./.github/workflows/build.yaml + name: Build rock + uses: canonical/data-platform-workflows/.github/workflows/build_rock.yaml@v16 + integration: runs-on: ubuntu-latest timeout-minutes: 120 @@ -41,12 +43,19 @@ jobs: run: | sudo snap install rockcraft --classic --revision 1206 sudo snap refresh rockcraft --hold=forever - - uses: actions/download-artifact@v3 + - name: Download rock package(s) + uses: actions/download-artifact@v4 with: - name: mongodb-rock + pattern: ${{ needs.build.outputs.artifact-prefix }}-* + merge-multiple: true - name: Install tox run: python3 -m pip install tox + - name: Integration Tests + run: | + touch requirements.txt + sg snap_microk8s -c "tox -e ${{ matrix.env }}" + - name: Free disk space run: | echo "Free disk space before cleanup" @@ -59,6 +68,3 @@ jobs: sudo rm -rf "$AGENT_TOOLSDIRECTORY" echo "Free disk space after cleanup" df -T - - - name: Integration Tests - run: sg snap_microk8s -c "tox -e ${{ matrix.env }}"