From 471c84b18c93f016f6d5870c930aa34f49eeeb9b Mon Sep 17 00:00:00 2001 From: Sugui Date: Fri, 29 Dec 2023 17:53:29 +0100 Subject: [PATCH] Deleted not docker workflow --- .gitea/workflows/test-compose.yaml | 19 ------------------- .gitea/workflows/test.yaml | 16 +++++++++------- 2 files changed, 9 insertions(+), 26 deletions(-) delete mode 100644 .gitea/workflows/test-compose.yaml diff --git a/.gitea/workflows/test-compose.yaml b/.gitea/workflows/test-compose.yaml deleted file mode 100644 index 9c7a939..0000000 --- a/.gitea/workflows/test-compose.yaml +++ /dev/null @@ -1,19 +0,0 @@ -name: Unit Tests with docker compose -run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 -on: [pull_request] - -jobs: - unit-test: - container: - image: docker:dind - steps: - - name: echo - run: echo $DOCKER_HOST - - name: Installing node - run: apk add nodejs git curl bash - - name: Check out repository code - uses: actions/checkout@v3 - - name: Install Bun runtime - run: curl -fsSL https://bun.sh/install | bash - - name: Run docker-compose - run: docker compose down -v && docker compose run bot-api bun test \ No newline at end of file diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index c1746f2..9c7a939 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -1,17 +1,19 @@ -name: Unit Tests +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 + image: docker:dind steps: + - name: echo + run: echo $DOCKER_HOST + - name: Installing node + run: apk add nodejs git curl bash - name: Check out repository code uses: actions/checkout@v3 - name: Install Bun runtime - run: curl -fsSL https://bun.sh/install | bash - - name: Install dependencies - run: ~/.bun/bin/bun install - - name: Run the test - run: ~/.bun/bin/bun test \ No newline at end of file + run: curl -fsSL https://bun.sh/install | bash + - name: Run docker-compose + run: docker compose down -v && docker compose run bot-api bun test \ No newline at end of file