This is a GitHub Actions workflow example to demonstrate building and testing a multi-container stack using
This sample is based on the Get started with Docker Compose documentation.
GitHub Actions Workflow
name: Docker Compose Actions Workflow on: push jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - name: Build the stack run: docker-compose up -d - name: Test run: docker run --network container:webapp-frontend appropriate/curl -s --retry 10 --retry-connrefused http://localhost:5000/
You can browse a run for this example here.
For more about testing containers before release see Smoke Testing.
MIT License - see the LICENSE file for details