Skip to content

Commit d091f07

Browse files
committed
:octocat:
1 parent 145a05e commit d091f07

File tree

2 files changed

+36
-32
lines changed

2 files changed

+36
-32
lines changed

.github/FUNDING.yml

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
ko_fi: codemasher
2-
custom: "https://www.paypal.com/donate?hosted_button_id=WLYUNAT9ZTJZ4"

.github/workflows/ci.yml

+36-31
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111

1212
name: "CI"
1313

14+
env:
15+
PHP_EXTENSIONS: curl, fileinfo, intl, json, mbstring, simplexml, sodium, zlib
16+
PHP_INI_VALUES: memory_limit=-1, error_reporting=-1, display_errors=On
17+
1418
jobs:
1519

1620
static-code-analysis:
@@ -38,9 +42,9 @@ jobs:
3842
uses: shivammathur/setup-php@v2
3943
with:
4044
php-version: ${{ matrix.php-version }}
41-
tools: pecl
45+
extensions: ast, ${{ env.PHP_EXTENSIONS }}
46+
ini-values: ${{ env.PHP_INI_VALUES }}
4247
coverage: none
43-
extensions: ast, curl, fileinfo, intl, json, mbstring, simplexml, sodium, zlib
4448

4549
- name: "Update dependencies with composer"
4650
uses: ramsey/composer-install@v3
@@ -49,34 +53,6 @@ jobs:
4953
run: php vendor/bin/phan --target-php-version=${{ matrix.php-version }}
5054

5155

52-
build-docs:
53-
name: "Build and publish Docs"
54-
55-
runs-on: ubuntu-latest
56-
57-
steps:
58-
- name: "Checkout sources"
59-
uses: actions/checkout@v4
60-
61-
- name: "Install PHP"
62-
uses: shivammathur/setup-php@v2
63-
with:
64-
php-version: "8.1"
65-
tools: phpDocumentor
66-
coverage: none
67-
extensions: curl, fileinfo, intl, json, mbstring, simplexml, sodium, zlib
68-
69-
- name: "Build Docs"
70-
run: phpdoc --config=phpdoc.xml.dist
71-
72-
- name: "Publish Docs to gh-pages"
73-
uses: JamesIves/github-pages-deploy-action@v4
74-
with:
75-
BRANCH: gh-pages
76-
FOLDER: docs
77-
CLEAN: true
78-
79-
8056
tests:
8157
name: "Unit Tests"
8258
needs: static-code-analysis
@@ -104,8 +80,9 @@ jobs:
10480
uses: shivammathur/setup-php@v2
10581
with:
10682
php-version: ${{ matrix.php-version }}
83+
extensions: ${{ env.PHP_EXTENSIONS }}
84+
ini-values: ${{ env.PHP_INI_VALUES }}
10785
coverage: pcov
108-
extensions: curl, fileinfo, intl, json, mbstring, simplexml, sodium, zlib
10986

11087
- name: "Install dependencies with composer"
11188
uses: ramsey/composer-install@v3
@@ -124,3 +101,31 @@ jobs:
124101
with:
125102
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
126103
coverage-reports: .build/coverage/clover.xml
104+
105+
106+
build-docs:
107+
name: "Build and publish Docs"
108+
109+
runs-on: ubuntu-latest
110+
111+
steps:
112+
- name: "Checkout sources"
113+
uses: actions/checkout@v4
114+
115+
- name: "Install PHP"
116+
uses: shivammathur/setup-php@v2
117+
with:
118+
php-version: "8.3"
119+
tools: phpDocumentor
120+
extensions: simplexml
121+
coverage: none
122+
123+
- name: "Build Docs"
124+
run: phpdoc --config=phpdoc.xml.dist
125+
126+
- name: "Publish Docs to gh-pages"
127+
uses: JamesIves/github-pages-deploy-action@v4
128+
with:
129+
BRANCH: gh-pages
130+
FOLDER: docs
131+
CLEAN: true

0 commit comments

Comments
 (0)