add phpdoc job
This commit is contained in:
@@ -35,20 +35,9 @@ jobs:
|
|||||||
include/*.php
|
include/*.php
|
||||||
plugins/**/*.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
|
- name: phpstan
|
||||||
run: php81 -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G
|
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
|
- name: setup qemu
|
||||||
uses: https://github.com/docker/setup-qemu-action@v2
|
uses: https://github.com/docker/setup-qemu-action@v2
|
||||||
|
|
||||||
|
|||||||
21
.gitea/workflows/phpdoc.yml
Normal file
21
.gitea/workflows/phpdoc.yml
Normal file
@@ -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/
|
||||||
Reference in New Issue
Block a user