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

19 lines
581 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:29:01 +00:00
image: docker:dind
2023-12-29 15:37:24 +00:00
steps:
2023-12-29 16:29:01 +00:00
- name: echo
run: echo $DOCKER_HOST
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:31:49 +00:00
run: docker compose down -v && docker compose run bot-api bun test