forked from SwitchSystems/laminas-twb-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bringing library into our Organization, bumping deps and dev/CI chang…
…es (#1) * Add branch alias for our compat version * Fix branch alias * dev deps, github actions, php versions, cleanup * minimum laminas form 3 * phpunit minimum bump * codecov v4 * removing v2 bc * dropping php 8.0 and phpunit 9 * readme update --------- Co-authored-by: Tom Ford <[email protected]>
- Loading branch information
Showing
74 changed files
with
5,607 additions
and
5,404 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: composer | ||
directory: '/' | ||
schedule: | ||
interval: daily | ||
- package-ecosystem: github-actions | ||
directory: '/' | ||
schedule: | ||
interval: daily |
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,57 @@ | ||
name: Build | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
build: | ||
name: PHP ${{ matrix.php-versions }} ${{ matrix.composer-args }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
operating-system: [ubuntu-latest] | ||
php-versions: ["8.1", "8.2", "8.3"] | ||
composer-args: ["", "--prefer-lowest"] | ||
runs-on: ${{ matrix.operating-system }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup PHP | ||
uses: shivammathur/[email protected] | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: mbstring | ||
coverage: pcov | ||
tools: cs2pr | ||
- name: Setup problem matchers for PHPUnit | ||
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | ||
- name: Get composer cache directory | ||
id: composer-cache | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
- name: Cache dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: php${{ matrix.php-versions }}-composer-${{ matrix.composer-args }}-${{ hashFiles('**/composer.json') }} | ||
restore-keys: php${{ matrix.php-versions }}-composer-${{ matrix.composer-args }}- | ||
- name: Install Dependencies | ||
run: | | ||
composer update --no-progress --no-suggest --prefer-stable --optimize-autoloader ${{ matrix.composer-args }} | ||
- name: PHPStan | ||
run: composer phpstan | ||
- name: Code Style Check | ||
env: | ||
PHP_CS_FIXER_IGNORE_ENV: true | ||
run: composer style-check -- --format=checkstyle | cs2pr | ||
- name: Test | ||
run: composer test-with-coverage | ||
- name: Upload Coverage | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
files: ./clover.xml | ||
fail_ci_if_error: true | ||
verbose: true | ||
token: ${{ secrets.CODECOV_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->exclude('vendor') | ||
->files() | ||
->in(__DIR__) | ||
; | ||
|
||
$config = new PhpCsFixer\Config(); | ||
return $config->setRiskyAllowed(true) | ||
->setRules([ | ||
'@PSR2' => true, | ||
'@PHPUnit60Migration:risky' => true, | ||
'binary_operator_spaces' => ['operators' => ['=' => 'align', '=>' => 'align']], | ||
'single_quote' => true, | ||
'array_syntax' => ['syntax' => 'short'], | ||
'concat_space' => ['spacing' => 'one'], | ||
'no_unused_imports' => true, | ||
]) | ||
->setUsingCache(true) | ||
->setFinder($finder); | ||
; |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<?php | ||
|
||
require_once __DIR__ . '/src/TwbBundle/Module.php'; | ||
<?php | ||
|
||
require_once __DIR__ . '/src/TwbBundle/Module.php'; |
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
Oops, something went wrong.