-
-
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.
[output] add custom output style (#25)
* chore: make ci faster * chore: mark internal code * chore: replace helpers with traits * chore: add Style namespace * chore: add output helper * chore: remove un-used constructor * chore: set output and input * chore: organize namespaces * wip * wip * chore: replace method wrappers with extend * chore: convert output into a symfony style * chore: allow mocking output - for old symfony versions that don't type hint the `getFormatter()` method * feat: add custom style * chore(docs): update output style
- Loading branch information
Showing
12 changed files
with
354 additions
and
721 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 |
---|---|---|
@@ -1,73 +1,36 @@ | ||
name: "Continuous Integration" | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
name: CI | ||
on: [ push, pull_request ] | ||
jobs: | ||
phpunit: | ||
name: "Unit Tests" | ||
runs-on: ubuntu-latest | ||
ci: | ||
name: "CI" | ||
runs-on: ${{ matrix.operating-system }} | ||
strategy: | ||
matrix: | ||
operating-system: [ ubuntu-latest, windows-latest, macos-latest ] | ||
php-version: [ 8.3 ] | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
|
||
- name: "Install PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
coverage: "pcov" | ||
php-version: "8.1" | ||
ini-values: memory_limit=-1 | ||
extensions: sodium, fileinfo, redis | ||
|
||
- name: "Install dependencies" | ||
uses: ramsey/composer-install@v2 | ||
with: | ||
dependency-versions: "locked" | ||
|
||
- name: "Run PHPUnit" | ||
run: composer test | ||
|
||
psalm: | ||
name: "Static Analysis" | ||
runs-on: ubuntu-latest | ||
steps: | ||
# --------- Setup steps --------- | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
|
||
- name: "Install PHP" | ||
- name: "Setup PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "8.1" | ||
coverage: "pcov" | ||
php-version: "${{ matrix.php-version }}" | ||
ini-values: memory_limit=-1 | ||
extensions: sodium, fileinfo, redis | ||
extensions: pcov, xdebug | ||
|
||
- name: "Install dependencies" | ||
uses: ramsey/composer-install@v2 | ||
with: | ||
dependency-versions: "locked" | ||
|
||
- name: "Run Psalm" | ||
run: composer psalm | ||
|
||
phpcs: | ||
name: "Code Style" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
|
||
- name: "Install PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "8.1" | ||
ini-values: memory_limit=-1 | ||
extensions: sodium, fileinfo, redis | ||
# --------- Run steps --------- | ||
- name: "Unit Tests" | ||
run: "composer test" | ||
|
||
- name: "Install dependencies" | ||
uses: ramsey/composer-install@v2 | ||
with: | ||
dependency-versions: "locked" | ||
- name: "Coding Style" | ||
run: "composer cs-fix" | ||
|
||
- name: "Run PHPCS" | ||
run: composer cs-check | ||
- name: "Static code analysis" | ||
run: "composer psalm" |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.