feat: add PHPStan static analysis and fix all level-max errors #120
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Tests" | |
| on: [ pull_request ] | |
| jobs: | |
| lint: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 2 | |
| - run: git checkout HEAD^2 | |
| - name: Build | |
| env: | |
| LLM_KEY_ANTHROPIC: ${{ secrets.LLM_KEY_ANTHROPIC }} | |
| LLM_KEY_OPENAI: ${{ secrets.LLM_KEY_OPENAI }} | |
| LLM_KEY_DEEPSEEK: ${{ secrets.LLM_KEY_DEEPSEEK }} | |
| LLM_KEY_XAI: ${{ secrets.LLM_KEY_XAI }} | |
| LLM_KEY_PERPLEXITY: ${{ secrets.LLM_KEY_PERPLEXITY }} | |
| LLM_KEY_GEMINI: ${{ secrets.LLM_KEY_GEMINI }} | |
| run: | | |
| docker compose build | |
| docker compose up -d | |
| sleep 10 | |
| - name: Run Tests | |
| run: docker compose exec tests vendor/bin/phpunit --configuration phpunit.xml tests |