From e64474a4f472f60d0dcee4f59bcdb064182112f9 Mon Sep 17 00:00:00 2001 From: Sugui Date: Fri, 29 Dec 2023 16:37:24 +0100 Subject: [PATCH] Testing action with docker compose --- .gitea/workflows/test-compose.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .gitea/workflows/test-compose.yaml diff --git a/.gitea/workflows/test-compose.yaml b/.gitea/workflows/test-compose.yaml new file mode 100644 index 0000000..3b3b6d2 --- /dev/null +++ b/.gitea/workflows/test-compose.yaml @@ -0,0 +1,17 @@ +name: Unit Tests with docker compose +run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +on: [pull_request] + +jobs: + unit-test: + container: + image: catthehacker/ubuntu:act-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: Install Bun runtime + run: curl -fsSL https://bun.sh/install | bash + - name: Install docker-compose + run: apt install -y docker.io + - name: Run docker-compose + run: docker compose down -v && docker compose run bot-api bun test \ No newline at end of file