From 8c744a66ba2cb9942cae31f3898d45b28e591bb8 Mon Sep 17 00:00:00 2001 From: Alie Date: Sat, 6 Jan 2024 19:10:08 +0100 Subject: [PATCH] skip the isntalation of bun if already on the system --- .gitea/workflows/test.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 36184af..431e2c0 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -6,7 +6,7 @@ jobs: container: image: docker:dind volumes: - - /root/.npm:/root/.npm + - /root:/root - /var/lib/docker/image:/var/lib/docker/image - /var/lib/docker/overlay2:/var/lib/docker/overlay2 steps: @@ -17,8 +17,9 @@ jobs: - name: Check out repository code uses: actions/checkout@v3 - name: Install bun.sh + if: ${{ hashFiles('~/.bun/bin/bun') == '' }} run: curl https://raw.githubusercontent.com/LowByteFox/bun-musl/main/bun-musl -o bun-musl && bash bun-musl install - name: Install project dependencies - run: ~/.bun/bin/bun install + run: ~/.bun/bin/bun i - name: Run docker-compose run: docker compose down -v && docker compose run bot-api bun test \ No newline at end of file