-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed: - Refactored GitHub Actions workflows to use shivammathur/setup-php for tools instead of the package's Composer development dependencies. - Merged jobs in Lint workflow. - Updated Lint workflow jobs to sue cs2pr.
- Loading branch information
Showing
2 changed files
with
16 additions
and
47 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -12,13 +12,9 @@ name: "Test" | |
on: | ||
workflow_dispatch: | ||
push: | ||
paths-ignore: | ||
- 'docs/**' | ||
tags-ignore: | ||
- '**' | ||
pull_request: | ||
paths-ignore: | ||
- 'docs/**' | ||
tags-ignore: | ||
- '**' | ||
schedule: | ||
|
@@ -94,14 +90,17 @@ jobs: | |
- name: "Checkout" | ||
uses: "actions/checkout@v4" | ||
|
||
- name: "Prepare git environment" | ||
run: "git config --global user.name composer && git config --global user.email [email protected]" | ||
|
||
- name: "Setup PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
coverage: "none" | ||
extensions: "intl, zip" | ||
ini-values: "memory_limit=-1, phar.readonly=0, error_reporting=E_ALL, display_errors=On" | ||
php-version: "${{ matrix.php-version }}" | ||
tools: "composer:${{ matrix.composer-version }}" | ||
tools: composer:${{ matrix.composer-version }}, phpunit-bridge | ||
env: | ||
fail-fast: true | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -136,8 +135,8 @@ jobs: | |
composer require ${{ env.COMPOSER_FLAGS }} --update-with-dependencies composer/composer="~${{ matrix.composer-version }}.0" | ||
fi | ||
- name: "Prepare git environment" | ||
run: "git config --global user.name composer && git config --global user.email [email protected]" | ||
- name: Install PHPUnit | ||
run: "simple-phpunit install" | ||
|
||
- name: "Run tests" | ||
run: "vendor/bin/simple-phpunit --verbose" | ||
run: "simple-phpunit --verbose" |