summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-03-28 17:52:59 +0300
committerAndrew Dolgov <[email protected]>2023-03-28 17:52:59 +0300
commitda620ef5d80ec5ab0b04ad75949792f41123a0a2 (patch)
tree463cb66b3c48433772c6a3513169f71f6a1c04ab
parentecedc5116225f79c87c687ae32a88a25b2ecfee7 (diff)
add phpdoc job
-rw-r--r--.gitea/workflows/build.yml11
-rw-r--r--.gitea/workflows/phpdoc.yml21
2 files changed, 21 insertions, 11 deletions
diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml
index c91a311ea..169d87a8c 100644
--- a/.gitea/workflows/build.yml
+++ b/.gitea/workflows/build.yml
@@ -35,20 +35,9 @@ jobs:
include/*.php
plugins/**/*.php
- - uses: https://github.com/actions/cache/restore@v3
- id: cache-phpstan
- with:
- path: /tmp/phpstan
- key: ${{ runner.os }}-phpstan-${{ steps.cache-hash.outputs.hash }}
-
- name: phpstan
run: php81 -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G
- - uses: https://github.com/actions/cache/save@v3
- with:
- path: /tmp/phpstan
- key: ${{ steps.cache-phpstan.outputs.cache-primary-key }}
-
- name: setup qemu
uses: https://github.com/docker/setup-qemu-action@v2
diff --git a/.gitea/workflows/phpdoc.yml b/.gitea/workflows/phpdoc.yml
new file mode 100644
index 000000000..be4ed06b2
--- /dev/null
+++ b/.gitea/workflows/phpdoc.yml
@@ -0,0 +1,21 @@
+name: build
+
+on:
+ push:
+ branches:
+ - "master"
+ workflow_dispatch: {}
+
+defaults:
+ run:
+ shell: sh
+
+jobs:
+ build:
+ runs-on: alpine-3.16
+ steps:
+ - name: phpdoc
+ run: php81 /phpDocumentor.phar -d classes -d include -t phpdoc --visibility=public
+
+ - name: upload results
+ run: rsync -e 'ssh -o StrictHostKeyChecking=no' phpdoc/ ${{ secrets.APK_DEPLOY_USER }}@${{ secrets.APK_DEPLOY_HOST }}:phpdoc/