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

17 lines
553 B
YAML

name: Unit Tests with docker compose
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [pull_request]
jobs:
unit-test:
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install Bun runtime
run: curl -fsSL https://bun.sh/install | bash
- name: Install docker-compose
run: apt install -y docker.io
- name: Run docker-compose
run: docker compose down -v && docker compose run bot-api bun test