From c786354e4b9cd5a8af8c5eb045765a0a6cfdfe3a Mon Sep 17 00:00:00 2001 From: Mike Sul Date: Wed, 18 Sep 2024 15:23:33 +0200 Subject: [PATCH] ci: Add github workflow to run all tests Signed-off-by: Mike Sul --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6c406c9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +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: test + run: docker compose --env-file=test/compose/.env.test -f test/compose/docker-compose.yml run composectl make test-e2e + - name: teardown test env + run: docker compose --env-file=test/compose/.env.test -f test/compose/docker-compose.yml down