-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from flavio-schoute/fix/gh-action-workflow
Update GitHub Actions Workflow
- Loading branch information
Showing
3 changed files
with
53 additions
and
48 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
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 |
This file was deleted.
Oops, something went wrong.