Fix up phpstan issues and formatting in templates and setup CI to run on generated example templates. #416
Workflow file for this run
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: Static analysis | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| env: | |
| DAGGER_VERSION: 0.18.2 | |
| jobs: | |
| phpstan: | |
| name: PHPStan | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Run pipeline | |
| uses: dagger/dagger-for-github@e5153f5610d82ac9f3f848f3a25ad9d696641068 # v7.0.1 | |
| with: | |
| verb: call | |
| args: lint phpstan | |
| cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }} | |
| version: ${{ env.DAGGER_VERSION }} | |
| php-cs-fixer: | |
| name: PHP-CS-Fixer | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Run pipeline | |
| uses: dagger/dagger-for-github@e5153f5610d82ac9f3f848f3a25ad9d696641068 # v7.0.1 | |
| with: | |
| verb: call | |
| args: lint php-cs-fixer | |
| cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }} | |
| version: ${{ env.DAGGER_VERSION }} |