diff options
author | Andrew Dolgov <[email protected]> | 2023-03-25 07:54:14 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-03-25 09:56:59 +0300 |
commit | ca86a0e23953fc0899117e46eca900eaba1a8a93 (patch) | |
tree | 74215e424cdcd78671cb205e67ec4e8892b7e170 /.gitea/workflows | |
parent | 563675de095fef98a8eb2fc7b948845b6a693eb5 (diff) |
add lint workflow
Diffstat (limited to '.gitea/workflows')
-rw-r--r-- | .gitea/workflows/lint.yaml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.gitea/workflows/lint.yaml b/.gitea/workflows/lint.yaml new file mode 100644 index 000000000..1e5b3ad3f --- /dev/null +++ b/.gitea/workflows/lint.yaml @@ -0,0 +1,24 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + +name: lint + +on: + - push + - workflow_dispatch + +defaults: + run: + shell: sh + +jobs: + lint: + runs-on: alpine-3.16 + steps: + - name: checkout source + uses: actions/checkout@v3 + + - name: phpunit + run: php81 ./vendor/bin/phpunit + + - name: phpstan + run: php81 -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G |