Skip to content

Test framework

Test framework #28

Workflow file for this run

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