-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Korben Dal
committed
Apr 25, 2024
1 parent
d4b33b1
commit e7ceb9f
Showing
11 changed files
with
3 additions
and
128 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 |
---|---|---|
|
@@ -18,6 +18,9 @@ jobs: | |
- ubuntu-latest | ||
php_versions: | ||
- '7.4' | ||
- '8.0' | ||
- '8.1' | ||
- '8.2' | ||
fail-fast: false | ||
env: | ||
PHP_CS_FIXER_FUTURE_MODE: '0' | ||
|
@@ -55,64 +58,3 @@ jobs: | |
working-directory: './' | ||
- name: 'Linting PHP source files' | ||
run: 'vendor/bin/ecs check --config=ecs.php .' | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
operating_system: | ||
- ubuntu-latest | ||
php_versions: | ||
- '7.4' | ||
- '8.0' | ||
- '8.1' | ||
- '8.2' | ||
runs-on: '${{ matrix.operating_system }}' | ||
name: 'Test / PHP ${{ matrix.php_versions }}' | ||
needs: | ||
- lint | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: 'Setup cache environment' | ||
id: cache-env | ||
uses: shivammathur/cache-extensions@v1 | ||
with: | ||
php-version: ${{ matrix.php_versions }} | ||
extensions: ${{ env.php_extensions }} | ||
key: '${{ env.key }}' | ||
- name: 'Cache extensions' | ||
uses: actions/cache@v1 | ||
with: | ||
path: '${{ steps.cache-env.outputs.dir }}' | ||
key: '${{ steps.cache-env.outputs.key }}' | ||
restore-keys: '${{ steps.cache-env.outputs.key }}' | ||
- name: 'Setup PHP' | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php_versions }} | ||
extensions: ${{ env.php_extensions }} | ||
ini-values: 'pcov.directory=src, date.timezone=UTC, upload_max_filesize=20M, post_max_size=20M, memory_limit=512M, short_open_tag=Off' | ||
coverage: pcov | ||
tools: 'phpunit' | ||
- name: 'Install PHP dependencies with Composer' | ||
run: composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader | ||
working-directory: './' | ||
- name: 'Run Unit Tests with PHPUnit' | ||
run: './vendor/bin/phpunit --stderr --configuration phpunit.github.xml --coverage-clover build/logs/clover.xml --coverage-text' | ||
working-directory: './' | ||
- name: Upload coverage results to Coveralls | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COVERALLS_PARALLEL: true | ||
COVERALLS_FLAG_NAME: php-${{ matrix.php_versions }} | ||
run: ./vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v | ||
coverage: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
name: "Code coverage" | ||
steps: | ||
- name: Coveralls Finished | ||
uses: coverallsapp/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
parallel-finished: true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
Empty file.
Empty file.