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

17 lines
527 B
YAML
Raw Normal View History

2023-12-29 15:37:24 +00:00
name: Unit Tests with docker compose
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [pull_request]
jobs:
unit-test:
container:
2023-12-29 16:08:06 +00:00
image: docker:dind
2023-12-29 15:37:24 +00:00
steps:
2023-12-29 15:58:34 +00:00
- name: Installing node
2023-12-29 16:02:28 +00:00
run: apk add nodejs git curl bash
2023-12-29 15:37:24 +00:00
- name: Check out repository code
uses: actions/checkout@v3
- name: Install Bun runtime
run: curl -fsSL https://bun.sh/install | bash
- name: Run docker-compose
2023-12-29 16:06:49 +00:00
run: dind compose down -v && dind compose run bot-api bun test