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:17:49 +00:00
|
|
|
runs-on: forgejo-runner
|
2023-12-25 12:16:44 +00:00
|
|
|
env:
|
|
|
|
COMPOSE_FILE: compose.yaml
|
|
|
|
DOCKER_USER: ${{ secrets.DOCKER_USER }}
|
|
|
|
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Login
|
|
|
|
run: docker login -u $DOCKER_USER -p $DOCKER_PASS
|
|
|
|
- name: Pull images
|
|
|
|
run: docker compose pull
|
|
|
|
- name: Run tests
|
|
|
|
run: docker compose run bun test
|