diff options
author | Andrew Dolgov <[email protected]> | 2023-03-28 17:57:17 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-03-28 17:57:17 +0300 |
commit | dfffa20e78a0cd709157079e8c4c4d092257a3ca (patch) | |
tree | fd52c54f07a1961e9c3ecebc180ab146f826e106 /.gitea/workflows/lint.yaml | |
parent | d25440f0515798abe4f2a390e92eb14565bf0730 (diff) |
simplify pipeline setup
Diffstat (limited to '.gitea/workflows/lint.yaml')
-rw-r--r-- | .gitea/workflows/lint.yaml | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/.gitea/workflows/lint.yaml b/.gitea/workflows/lint.yaml index 64be3efb8..781148a15 100644 --- a/.gitea/workflows/lint.yaml +++ b/.gitea/workflows/lint.yaml @@ -3,9 +3,11 @@ name: lint on: - - push - - workflow_dispatch - - pull_request + push: + branches-ignore: + - "master" + workflow_dispatch: {} + pull_request: {} defaults: run: @@ -36,16 +38,5 @@ jobs: - name: phpunit run: php81 ./vendor/bin/phpunit - - 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 }} |