diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ea9a9de04..173b690ed 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,4 +17,8 @@ jobs: uses: walt-id/waltid-identity/.github/workflows/build-docker.yml@266f5c09359450c39019a6da38f2b331e7122918 needs: version with: - version: ${{ needs.version.outputs.release_version }} \ No newline at end of file + version: ${{ needs.version.outputs.release_version }} + compose-test: + uses: walt-id/waltid-identity/.github/workflows/docker-compose-testing.yml@feat/docker-compose-testing + needs: [ docker-build ] + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/docker-compose-testing.yml b/.github/workflows/docker-compose-testing.yml index 9f21eef96..b8030392b 100644 --- a/.github/workflows/docker-compose-testing.yml +++ b/.github/workflows/docker-compose-testing.yml @@ -1,14 +1,11 @@ -name: Docker compose testing +name: Docker compose testing (reusable workflow) on: - push: - branches-ignore: - - main + workflow_call: workflow_dispatch: # Allows manual triggering of the workflow jobs: - automated-api-tests: -# runs-on: self-hosted + test: runs-on: ubuntu-latest strategy: matrix: @@ -31,11 +28,6 @@ jobs: filenameNoExtension=${filenameWithExtension%.*} echo "Will use filename $filenameNoExtension for reports" echo "dataset_filename=$filenameNoExtension" >> $GITHUB_ENV - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@v1.3.1 - with: - tool-cache: false - docker-images: false - name: Checkout repo uses: actions/checkout@v4 - name: Checkout waltid-identity-postman @@ -86,8 +78,8 @@ jobs: run: | sudo echo "127.0.0.1 host.docker.internal" | sudo tee -a /etc/hosts - name: Run API tests -# env: -# NODE_OPTIONS: "--max-old-space-size=6144 --max-semi-space-size=1024" + env: + NODE_OPTIONS: "--max-old-space-size=6144 --max-semi-space-size=1024" run: | newman run "${{ matrix.config.collection }}" \ --environment "${{ matrix.environment }}" \