be more explicit about which strings are expected to be literals #99
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: Automated Tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - main | |
| tags: | |
| - "v*" | |
| pull_request: | |
| jobs: | |
| generate: | |
| name: Generate Classes | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.4 | |
| - uses: actions/checkout@v6 | |
| - name: Install dependencies | |
| run: composer install | |
| - name: Generate classes.php | |
| run: php gen.php | |
| - name: Die if there are changes | |
| run: git diff --exit-code | |
| tests: | |
| name: Unit Tests (PHP ${{ matrix.php }}) | |
| strategy: | |
| matrix: | |
| php: ["8.4", "8.5"] | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| coverage: pcov | |
| - uses: actions/checkout@v6 | |
| - uses: actions/cache@v5 | |
| with: | |
| path: vendor | |
| key: vendor-${{ hashFiles('composer.json') }} | |
| - run: composer install | |
| - run: composer test | |
| static: | |
| name: Static Analysis | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.4 | |
| - uses: actions/checkout@v6 | |
| - uses: actions/cache@v5 | |
| with: | |
| path: vendor | |
| key: vendor-${{ hashFiles('composer.json') }} | |
| - run: composer install | |
| - run: composer analyse-ci | |
| format: | |
| name: Formatting | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.4 | |
| - uses: actions/checkout@v6 | |
| - uses: actions/cache@v5 | |
| with: | |
| path: vendor | |
| key: vendor-${{ hashFiles('composer.json') }} | |
| - run: composer install | |
| - run: composer format && git diff --exit-code |