Merge pull request #6 from Haehnchen/feature/symfony-64-70 #25
This file contains 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: ci | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
php: ['7.2','7.3','7.4','8.0', '8.1'] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer | |
coverage: false | |
- name: Install Dependencies | |
run: composer update --prefer-dist --no-interaction | |
- name: run tests | |
run: composer test | |
- name: run analyze | |
run: composer analyze | |
coverage: | |
strategy: | |
matrix: | |
php: ['8.2'] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer | |
coverage: xdebug | |
- name: Install Dependencies | |
run: composer update --prefer-dist --no-interaction | |
- name: run tests | |
run: composer test | |
- name: run analyze | |
run: composer analyze | |
- name: Make code coverage badge | |
uses: timkrase/[email protected] | |
with: | |
coverage_badge_path: output/coverage.svg | |
push_badge: false | |
- name: Git push to image-data branch | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
publish_dir: ./output | |
publish_branch: image-data | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
user_name: 'github-actions[bot]' | |
user_email: 'github-actions[bot]@users.noreply.github.com' |