Add job summary #2
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: Testing matrix | |
| on: [push, pull_request] | |
| jobs: | |
| php-versions: | |
| name: Lookup PHP versions | |
| runs-on: ubuntu-latest | |
| outputs: | |
| matrix: ${{ steps.versions.outputs.matrix }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: antfroger/php-version-action@v1 | |
| id: versions | |
| test: | |
| name: Test PHP ${{ matrix.php-version }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| needs: php-versions | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] # add more os | |
| php-version: ${{ fromJSON(needs.php-versions.outputs.matrix) }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| coverage: xdebug | |
| tools: composer:v2 | |
| - name: Test | |
| run: echo "run your tests" |