bot-api/.gitea/workflows/test.yaml

21 lines
691 B
YAML

name: Unit Tests with docker compose
on: [pull_request]
jobs:
unit-test:
container:
image: docker:dind
volumes:
- /root/.npm:/root/.npm
- /var/lib/docker/images:/var/lib/docker/images
steps:
- name: Starting docker daemon
run: docker-init -- dockerd --host=unix:///var/run/docker.sock &
- name: Installing necessary packages
run: apk add yarn git curl bash
- name: Check out repository code
uses: actions/checkout@v3
- name: Install project dependencies
run: yarn install --ignore-scripts
- name: Run docker-compose
run: docker compose down -v && docker compose run bot-api bun test