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

19 lines
696 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: docker:dind
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: Check out repository code
uses: actions/checkout@v3
- name: Install project dependencies
run: docker run -w /usr/src/app -v ./:/usr/src/app oven/bun:1 bun i --verbose
- name: Run docker-compose
run: docker compose down -v && docker compose run bot-api bun test