-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (32 loc) · 933 Bytes
/
tests-external.yml
File metadata and controls
40 lines (32 loc) · 933 Bytes
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
name: "Tests (External)"
on:
pull_request_target:
types: [labeled]
permissions:
contents: read
jobs:
tests:
name: Tests (External)
runs-on: ubuntu-latest
if: github.event.label.name == 'test'
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 up -d
sleep 15
- name: Doctor
run: |
docker compose logs
docker ps
docker network ls
- name: Run Tests
run: |
docker compose exec -T tests vendor/bin/phpunit --configuration phpunit.xml tests