Skip to content

Commit e6feb23

Browse files
authored
Merge branch 'main' into speed-up-parser
2 parents 495b21f + dd1bad4 commit e6feb23

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/documentation.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: "Documentation"
2+
3+
on: # yamllint disable-line rule:truthy
4+
pull_request:
5+
branches:
6+
- "main"
7+
paths:
8+
- ".github/workflows/documentation.yml"
9+
- "docs/**"
10+
push:
11+
branches:
12+
- "main"
13+
paths:
14+
- ".github/workflows/documentation.yml"
15+
- "docs/**"
16+
17+
jobs:
18+
validate-with-guides:
19+
name: "Validate documentation with phpDocumentor/guides"
20+
runs-on: "ubuntu-22.04"
21+
22+
steps:
23+
- name: "Checkout code"
24+
uses: "actions/checkout@v3"
25+
26+
- name: "Install PHP"
27+
uses: "shivammathur/setup-php@v2"
28+
with:
29+
coverage: "none"
30+
php-version: "8.2"
31+
32+
- name: "Install dependencies with Composer"
33+
uses: "ramsey/composer-install@v2"
34+
with:
35+
dependency-versions: "highest"
36+
37+
- name: "Run guides-cli"
38+
run: "vendor/bin/guides -vvv --no-progress docs /tmp/test --fail-on-log"

0 commit comments

Comments
 (0)