Skip to content

Commit

Permalink
test compose using a matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz committed Oct 2, 2024
1 parent f4165e9 commit 8895ea8
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ jobs:
name: compose-test
needs: build-test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
edition: [enterprise, community]
steps:
- name: Log in to the Container registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
Expand All @@ -138,31 +142,19 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1

- name: Verify docker-compose (community)
uses: Alfresco/alfresco-build-tools/.github/actions/dbp-charts/[email protected]
timeout-minutes: 10
with:
compose_file_path: test/community-docker-compose.yml

- name: Save containers logs (Community)
if: always()
uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
with:
output-archive-name: community-logs.tar.gz

- name: Verify docker-compose (enterprise)
- name: Verify docker-compose (${{ matrix.edition }})
uses: Alfresco/alfresco-build-tools/.github/actions/dbp-charts/[email protected]
timeout-minutes: 10
with:
compose_file_path: test/docker-compose.yml
compose_file_path: test/${{ matrix.edition }}-docker-compose.yml
quay_username: ${{ secrets.QUAY_USERNAME }}
quay_password: ${{ secrets.QUAY_PASSWORD }}

- name: Save containers logs (Enterprise)
- name: Save containers logs (${{ matrix.edition }})
if: always()
uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
with:
output-archive-name: enterprise-logs.tar.gz
output-archive-name: ${{ matrix.edition }}-logs

helm-test:
strategy:
Expand Down

0 comments on commit 8895ea8

Please sign in to comment.