diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 49d3aef..d43ffed 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -126,10 +126,21 @@ jobs: composer install --no-progress --prefer-dist --optimize-autoloader fi - - run: mkdir -p art - - run: echo hello > art/world.txt + - name: Run phpstan + run: vendor/bin/phpstan analyse src tests --error-format=github > phpstan.errors + + - name: Run phpcs + run: composer cs-check > phpcs.errors + + - run: mkdir -p artifacts - uses: https://github.com/christopherHX/gitea-upload-artifact@v4 with: - name: my-artifact - path: art/world.txt + name: phpstan + path: artifacts/phpstan.errors + + - uses: https://github.com/christopherHX/gitea-upload-artifact@v4 + with: + name: phpcs + path: artifacts/phpcs.errors +