Skip to content

Fix: branch list empty #311

Fix: branch list empty

Fix: branch list empty #311

Workflow file for this run

name: "Tests"
on:
pull_request:
permissions:
contents: read
jobs:
tests:
name: ${{ matrix.adapter }}
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name == github.repository
strategy:
fail-fast: false
matrix:
adapter: [gitea, forgejo, github, gitlab, gogs]
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Start Test Stack
env:
TESTS_GITHUB_PRIVATE_KEY: ${{ secrets.TESTS_GITHUB_PRIVATE_KEY }}
TESTS_GITHUB_APP_IDENTIFIER: ${{ secrets.TESTS_GITHUB_APP_IDENTIFIER }}
TESTS_GITHUB_INSTALLATION_ID: ${{ secrets.TESTS_GITHUB_INSTALLATION_ID }}
run: |
docker compose --profile ${{ matrix.adapter }} up -d
sleep 15
- name: Doctor
run: |
docker compose --profile ${{ matrix.adapter }} logs
docker ps
docker network ls
- name: Run Tests
run: |
docker compose exec -T tests vendor/bin/phpunit --configuration phpunit.xml --testsuite ${{ matrix.adapter }}