Skip to content

Merge branch 'feature/unit_test_grinding' into develop #539

Merge branch 'feature/unit_test_grinding' into develop

Merge branch 'feature/unit_test_grinding' into develop #539

Workflow file for this run

name: Build
on:
push:
branches: [ main, develop, 'feature/**' ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
env:
- { php: 7.4, coverage: no }
- { php: 8.0, coverage: no }
- { php: 8.1, coverage: no }
- { php: 8.2, coverage: no }
- { php: 8.3, coverage: no }
- { php: 8.4, coverage: yes }
steps:
- name: Switch PHP Version
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.env.php }}
coverage: xdebug
- uses: actions/checkout@v4
- name: Validate composer.json
run: composer validate --strict
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Build without coverage
if: ${{ matrix.env.coverage == 'no' }}
run: composer test
- name: Build
if: ${{ matrix.env.coverage == 'yes' }}
run: composer test-coverage
- name: publish code coverage
uses: paambaati/[email protected]
if: ${{ matrix.env.coverage == 'yes' && env.BRANCH_NAME == 'main'}}
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATEKEY }}