Run MCP smoke tests with AI CLI tools #155
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: PHPStan check | |
| on: pull_request | |
| permissions: | |
| actions: read | |
| checks: read | |
| contents: read | |
| deployments: none | |
| issues: read | |
| packages: none | |
| pull-requests: read | |
| repository-projects: none | |
| security-events: none | |
| statuses: read | |
| env: | |
| PLUGIN_NAME: McpServer | |
| jobs: | |
| phpstan: | |
| name: PHPStan | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| lfs: false | |
| persist-credentials: false | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2 | |
| with: | |
| php-version: '8.1' | |
| - name: Check out github-action-tests repository | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: matomo-org/github-action-tests | |
| ref: main | |
| path: github-action-tests | |
| - name: Check out Matomo for plugin builds | |
| run: ${{ github.workspace }}/github-action-tests/scripts/bash/checkout_matomo.sh | |
| env: | |
| PLUGIN_NAME: ${{ env.PLUGIN_NAME }} | |
| WORKSPACE: ${{ github.workspace }} | |
| ACTION_PATH: ${{ github.workspace }}/github-action-tests | |
| MATOMO_TEST_TARGET: maximum_supported_matomo | |
| - name: Prepare setup | |
| run: composer install --ignore-platform-reqs | |
| working-directory: matomo | |
| - name: Restore result cache | |
| uses: actions/cache/restore@v5 | |
| with: | |
| path: /tmp/phpstan # same as in phpstan.neon | |
| key: "phpstan-result-cache-${{ github.run_id }}" | |
| restore-keys: | | |
| phpstan-result-cache- | |
| - name: PHPStan whole repo | |
| run: composer run phpstan -- -vvv -c plugins/${{ env.PLUGIN_NAME }}/phpstan.neon | |
| working-directory: matomo | |
| - name: Save result cache | |
| uses: actions/cache/save@v5 | |
| if: ${{ !cancelled() }} | |
| with: | |
| path: /tmp/phpstan # same as in phpstan.neon | |
| key: "phpstan-result-cache-${{ github.run_id }}" |