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

23 lines
615 B
YAML
Raw Normal View History

2023-12-25 12:16:44 +00:00
name: test-dev
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on:
pull_request:
jobs:
run-tests:
2023-12-25 12:38:16 +00:00
container:
image: catthehacker/ubuntu:act-latest
2023-12-25 12:16:44 +00:00
env:
COMPOSE_FILE: compose.yaml
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
2023-12-25 12:51:06 +00:00
DOCKER_HOST: unix:///run/user/1000/docker.sock
2023-12-25 12:16:44 +00:00
steps:
- name: Checkout code
uses: actions/checkout@v2
2023-12-25 12:44:24 +00:00
- name: Start docker
run: systemctl start docker
2023-12-25 12:16:44 +00:00
- name: Pull images
run: docker compose pull
- name: Run tests
2023-12-25 12:26:46 +00:00
run: docker compose run bot-api bun test