just copy paste because seems imposible otherwise
Test via test action and then build image / unit-test (push) Successful in 2m5s Details
Test via test action and then build image / build (push) Failing after 7s Details

This commit is contained in:
Alie 2024-01-07 13:24:53 +01:00
parent 1e3889d9b9
commit 5917aa0fd8
1 changed files with 12 additions and 4 deletions

View File

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