-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (33 loc) · 1.04 KB
/
tests.yml
File metadata and controls
41 lines (33 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 }}