[Feat] WIP: Custom field implementation #11
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: Run tests & format | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: nanasess/setup-php@master | |
with: | |
php-version: 8.1 | |
- name: Install Dependencies | |
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress | |
- name: Composer dump-autoload | |
run: composer dump-autoload | |
- name: Execute tests (Unit and Feature tests) via PHPUnit | |
run: vendor/phpunit/phpunit/phpunit Tests | |
format: | |
name: Fix PHP Coding Style | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: nanasess/setup-php@master | |
with: | |
php-version: 8.1 | |
- name: Install Dependencies | |
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress | |
- name: Composer dump-autoload | |
run: composer dump-autoload | |
- name: Run php-cs-fixer | |
run: ./vendor/bin/php-cs-fixer fix | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Apply php-cs-fixer changes |