Add mago.toml and mago.yml for GitHub Actions #209
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: Test with php-src | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 9 7,14,21,28 * *' | |
| jobs: | |
| test: | |
| name: Test with php-src | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php: [ '8.1', '8.2', '8.3', '8.4', '8.5', 'master' ] | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Run docker compose | |
| shell: bash | |
| run: | | |
| cp .github/workflows/php-src-${{ matrix.php }}.dockerfile Dockerfile | |
| docker compose up -d | |
| sleep 30 | |
| - name: Run testing | |
| shell: bash | |
| run: | | |
| sleep 30 | |
| docker compose run web sh -c "cd / && composer test" |