Test framework #28
Workflow file for this run
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: Tests | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Build and run all tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: build | |
run: docker compose --env-file=test/compose/.env.test -f test/compose/docker-compose.yml run composectl make | |
- name: prepare test env | |
run: docker compose --env-file=test/compose/.env.test -f test/compose/docker-compose.yml run composectl test/fixtures/images/build-images.sh | |
- name: test | |
run: docker compose --env-file=test/compose/.env.test -f test/compose/docker-compose.yml run composectl go test -v ./... | |
- name: teardown test env | |
run: docker compose --env-file=test/compose/.env.test -f test/compose/docker-compose.yml down |