Bump the npm_and_yarn group across 1 directory with 2 updates #164
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docker Image CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Build the Docker images | |
| run: docker compose build | |
| - name: Run the Docker containers | |
| run: docker compose up -d | |
| - name: Wait for backend to be ready | |
| run: | | |
| echo "Waiting for backend to be ready..." | |
| until $(curl --output /dev/null --silent --head --fail http://localhost:4000); do | |
| printf '.' | |
| sleep 5 | |
| done | |
| - name: Test backend connectivity | |
| run: | | |
| echo "Testing backend API..." | |
| curl -f http://localhost:4000/livez || exit 1 | |
| - name: Tear down Docker containers | |
| run: docker compose down |