name: Docker Compose Test on: workflow_dispatch: push: pull_request: jobs: build: runs-on: ubuntu-latest steps: - name: Login to Docker Hub uses: docker/login-action@v3 with: username: ${{ vars.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - uses: actions/checkout@v4 # - name: Build and push Docker images # uses: docker/build-push-action@v6.10.0 # with: # push: true # tags: h4ckermike/swarms-api:experimental # - name: Build the Docker image # run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) - uses: adambirds/docker-compose-action@v1.5.0 with: compose-file: "./docker-compose.yml" up-flags: "--build" down-flags: "--volumes" #test-container: "test-container" #test-command: "npm test"