-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (36 loc) · 1.11 KB
/
tests-external.yml
File metadata and controls
45 lines (36 loc) · 1.11 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
42
43
44
45
name: "Tests (External)"
on:
pull_request_target:
types: [labeled]
permissions:
contents: read
jobs:
tests:
name: ${{ matrix.adapter }}
runs-on: ubuntu-latest
if: github.event.label.name == 'test'
strategy:
fail-fast: false
matrix:
adapter: [gitea, forgejo, github, gitlab, gogs]
steps:
- name: Check out the repo
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- 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 }}