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

17 lines
533 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 15:53:56 +00:00
image: docker:latest
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:04:19 +00:00
run: ducker compose down -v && docker compose run bot-api bun test