18 lines
683 B
YAML
18 lines
683 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
|
|
cmd: "docker-init -- dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2376 --tlsverify --tlscacert /certs/server/ca.pem --tlscert /certs &"
|
|
steps:
|
|
- name: Installing necessary packages
|
|
run: apk add npm git curl bash
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v3
|
|
- name: Install project dependencies
|
|
run: npm install
|
|
- name: Run docker-compose
|
|
run: docker compose down -v && docker compose run bot-api bun test |