Skip to content

Commit 6f8a075

Browse files
Florianjaapio
authored andcommitted
Adding the documentation.yml to the workflows, but removed some unnecessary jobs (Remove existing composer file, Require phpdocumentor/guides-cli, Configure minimum stability)
1 parent 2670ac4 commit 6f8a075

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:
4+
pull_request:
5+
branches:
6+
- "*.x"
7+
paths:
8+
- .github/workflows/documentation.yml
9+
- docs/**
10+
push:
11+
branches:
12+
- "*.x"
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/en /tmp/test 2>&1 | ( ! grep WARNING )"

0 commit comments

Comments
 (0)