cs fix #311
Workflow file for this run
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: Fohn-ui unit test | |
on: | |
pull_request: | |
push: | |
jobs: | |
unit-test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php: ['8.2'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP with PCOV | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{matrix.php}} | |
coverage: pcov | |
- name: Validate composer.json and composer.lock | |
run: composer validate --strict | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v3 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-php- | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: CodeStyle | |
run: vendor/bin/php-cs-fixer fix --dry-run --using-cache=no --diff --verbose | |
- name: Static analysis | |
run: vendor/bin/phpstan analyse | |
- name: Setup Apache for http app-test | |
uses: ./.github/actions/apache-setup | |
with: | |
php-version: ${{ matrix.php }} | |
site-directory: /home/runner/work/fohn-ui/fohn-ui | |
http-port: 7000 | |
- name: Run test suite | |
run: composer run-script unit-test | |
- name: merge coverage | |
run: vendor/bin/phpcov merge build/logs/ --clover build/coverage/merged.xml | |
- name: Upload Coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: build/coverage/merged.xml | |
verbose: true |