skip the isntalation of bun if already on the system
Unit Tests with docker compose / unit-test (pull_request) Failing after 26s Details

This commit is contained in:
Alie 2024-01-06 19:10:08 +01:00
parent f324c7fd2b
commit 8c744a66ba
1 changed files with 3 additions and 2 deletions

View File

@ -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