From 5917aa0fd8d06a5109bb73826e50724d3ac4f3c3 Mon Sep 17 00:00:00 2001 From: Alie Date: Sun, 7 Jan 2024 13:24:53 +0100 Subject: [PATCH] just copy paste because seems imposible otherwise --- .gitea/workflows/build.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 21e52a2..b5f58e4 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -9,13 +9,21 @@ jobs: unit-test: container: image: docker:dind + volumes: + - /usr/local/share/.cache/yarn:/usr/local/share/.cache/yarn + - /var/lib/docker/image:/var/lib/docker/image + - /var/lib/docker/overlay2:/var/lib/docker/overlay2 steps: + - name: Starting docker daemon + run: docker-init -- dockerd --host=unix:///var/run/docker.sock & - name: Installing necessary packages - run: apk add nodejs git curl bash - - name: Checkout + run: apk add yarn git curl bash + - name: Check out repository code uses: actions/checkout@v3 - - name: Run test job - uses: ./.gitea/workflows/test.yaml + - name: Install project dependencies + run: yarn install --frozen-lockfile --ignore-scripts + - name: Run docker-compose + run: docker compose down -v && docker compose run bot-api bun test build: container: image: docker:dind