Use Docker Compose for tests. #69
This file contains 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: Test Suite | |
on: | |
push : | |
pull_request : | |
workflow_dispatch : | |
jobs: | |
test_suite: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build Test Image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
load: true | |
tags: azuracast/nowplaying:latest | |
cache-from: type=gha,mode=max | |
cache-to: type=gha,mode=max | |
- name: Run CI Test Suite | |
run: | | |
docker-compose run --rm cli composer run ci |