Skip to content

Commit

Permalink
feat(integration-test): allow full compose output
Browse files Browse the repository at this point in the history
  • Loading branch information
shakefu committed Jun 1, 2023
1 parent 3dc7a21 commit 4bcca18
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion integration-test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ inputs:
required: false
description: Relative or absolute path to docker-compose.yaml file
default: ./docker-compose.yaml
full-compose-output:
required: false
description: Set this to true to log all container output from docker-compose
default: "false"
runs:
using: composite
steps:
Expand All @@ -28,7 +32,7 @@ runs:
DOCKER_BUILDKIT: "1"
GITHUB_TOKEN: ${{ inputs.github-token }}
run: |
docker-compose -f ${{ inputs.docker-compose-file }} up --build --exit-code-from test test
docker-compose -f ${{ inputs.docker-compose-file }} up --build --exit-code-from test ${{ inputs.full-compose-output == 'false' && 'test' || '' }}
echo '::set-output name=docker_up::true'
- name: Cleanup
if: ${{ steps.build.outputs.docker_up }}
Expand Down

0 comments on commit 4bcca18

Please sign in to comment.