Skip to content

Commit

Permalink
Refactor CI/CD workflows to use phonyland configuration
Browse files Browse the repository at this point in the history
Removed custom configurations of the GitHub actions workflows for better maintainability. We replaced the "test" job with the "phony_workflows" job that uses a predefined workflow from the phonyland development tools. This change makes it significantly easier to update and maintain compliance with best practices for software testing. It also increases the PHPStan analysis level for a more detailed review of potential code issues.
  • Loading branch information
deligoez committed Aug 22, 2023
1 parent c3698ce commit 6ca7b34
Showing 1 changed file with 2 additions and 27 deletions.
29 changes: 2 additions & 27 deletions .github/workflows/pest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,5 @@ on:
branches: [main, master]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: pcov

- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install composer dependencies
uses: ramsey/composer-install@v2

- name: List Installed Dependencies
run: composer show -D

- name: Execute tests
run: vendor/bin/pest --coverage --colors=always --order-by=random
phony_workflows:
uses: phonyland/dev-tools/.github/workflows/pest.yml@master

0 comments on commit 6ca7b34

Please sign in to comment.