-
Notifications
You must be signed in to change notification settings - Fork 438
42 lines (41 loc) · 1.21 KB
/
docs.yaml
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
name: DocFX Test Suite
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
jobs:
docfx:
name: "Run DocFX tests"
runs-on: ubuntu-latest
env:
PHPDOC_ENV: prod
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- run: pip install --no-deps --require-hashes -r .kokoro/docs/docker/requirements.txt
- name: Setup PHP
uses: shivammathur/setup-php@verbose
with:
php-version: "8.1"
- name: Extract phpDocumentor
id: extract
uses: shrink/actions-docker-extract@v2
with:
image: "phpdoc/phpdoc:3.4.1"
path: "/opt/phpdoc/."
- name: Symlink phpDocumentor
run: ln -s $(pwd)/${{ steps.extract.outputs.destination }}/bin/phpdoc /usr/local/bin/phpdoc
- name: Install Dependencies
uses: nick-invision/retry@v3
with:
timeout_minutes: 10
max_attempts: 3
command: composer --no-interaction --no-ansi --no-progress update -d dev
- name: Run DocFX Unit Test Suite
run: dev/vendor/bin/phpunit -c dev/phpunit-docfx.xml.dist
- name: Run Docs Generator (Dry Run)
run: .kokoro/docs/publish.sh