Skip to content

Commit 4755861

Browse files
committed
.github/workflows/test.yml: skip testing on php 8 as it requires dedicated phpunit config and move documentation step to a separate workflow
1 parent 89c7d5b commit 4755861

File tree

2 files changed

+27
-11
lines changed

2 files changed

+27
-11
lines changed

.github/workflows/document.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: phpunit
2+
3+
on: release
4+
5+
jobs:
6+
document:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/cache@v4
11+
with:
12+
path: vendor
13+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
14+
restore-keys: ${{ runner.os }}-composer-
15+
- name: composer
16+
run: composer update
17+
- name: document
18+
run: |
19+
docker run --rm -v $(pwd):/data phpdoc/phpdoc:3 --directory=src --directory=vendor/sweetrdf/rdf-interface/src --directory=vendor/sweetrdf/rdf-helpers/src/ --directory=vendor/ml/json-ld --target=docs
20+
git fetch && git checkout docs --
21+
for i in `ls -1 | grep -v ^docs$`; do rm -fR $i ; done
22+
cp -R docs/* .
23+
git config user.email "[email protected]"
24+
git config user.name "Github Actions Workflow"
25+
git add * || true
26+
git commit -a -m 'Automatic documentation generation' && git push origin docs || true

.github/workflows/test.yml

+1-11
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
phpunit:
77
strategy:
88
matrix:
9-
php: [8.0, 8.1, 8.2, 8.3, 8.4]
9+
php: [8.1, 8.2, 8.3, 8.4]
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
@@ -31,16 +31,6 @@ jobs:
3131
export COVERALLS_RUN_LOCALLY=1
3232
export COVERALLS_REPO_TOKEN=${{ secrets.coverallsToken }}
3333
php vendor/bin/php-coveralls -v
34-
- name: document
35-
run: |
36-
docker run --rm -v $(pwd):/data phpdoc/phpdoc:3 --directory=src --directory=vendor/sweetrdf/rdf-interface/src --directory=vendor/sweetrdf/rdf-helpers/src/ --directory=vendor/ml/json-ld --target=docs
37-
git fetch && git checkout docs --
38-
for i in `ls -1 | grep -v ^docs$`; do rm -fR $i ; done
39-
cp -R docs/* .
40-
git config user.email "[email protected]"
41-
git config user.name "Github Actions Workflow"
42-
git add * || true
43-
git commit -a -m 'Automatic documentation generation' && git push origin docs || true
4434
phpstan:
4535
runs-on: ubuntu-latest
4636
steps:

0 commit comments

Comments
 (0)