Skip to content

Commit

Permalink
ci: compose testing a reusable workflow, reference it in build
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeplotean committed Jan 20, 2025
1 parent 9d097a6 commit accf1ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
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
18 changes: 5 additions & 13 deletions .github/workflows/docker-compose-testing.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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/[email protected]
with:
tool-cache: false
docker-images: false
- name: Checkout repo
uses: actions/checkout@v4
- name: Checkout waltid-identity-postman
Expand Down Expand Up @@ -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 }}" \
Expand Down

0 comments on commit accf1ec

Please sign in to comment.