Skip to content

Commit

Permalink
Merge pull request #55 from flavio-schoute/fix/gh-action-workflow
Browse files Browse the repository at this point in the history
Update GitHub Actions Workflow
  • Loading branch information
reindert-vetter authored Aug 12, 2024
2 parents d13b87d + cb22b12 commit fac1bc4
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 48 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/format_php.yml

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/run-test-and-format.yml
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
22 changes: 0 additions & 22 deletions .github/workflows/run-tests-api.yml

This file was deleted.

0 comments on commit fac1bc4

Please sign in to comment.