Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: "PHPStan lint checks"
on:
push:
pull_request:

name: PHPStan lint checks

jobs:
static-analysis:
name: "PHPStan"
Expand All @@ -16,7 +15,7 @@ jobs:
- "8.2"
- "8.3"
dependencies: [ highest ]
operating-system: [ ubuntu-latest, windows-latest ]
operating-system: [ ubuntu-latest]

steps:
- name: "Checkout"
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: "PHPUnit tests"
on:
push:
pull_request:

env:
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"

jobs:
tests:
name: "PHPUnit tests"

runs-on: ${{ matrix.operating-system }}

strategy:
fail-fast: false
matrix:
php-version:
- "8.2"
- "8.3"
dependencies: [ highest ]
operating-system: [ ubuntu-latest]

steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
extensions: json, bcmath, curl, intl, mbstring

- name: "Install dependencies"
run: |
composer update ${{ env.COMPOSER_FLAGS }}

- name: "run unit tests"
run: "composer phpunit-run-unit-tests"

- name: "is unit tests tests succeeded"
if: ${{ success() }}
run: |
echo '✅ unit tests pass, congratulations!'

- name: "is unit tests tests failed"
if: ${{ failure() }}
run: |
echo '::error:: ❗️ unit tests tests failed (╯°益°)╯彡┻━┻'
50 changes: 50 additions & 0 deletions .github/workflows/rector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: "Rector lint checks"
on:
push:
pull_request:

env:
COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist"

jobs:
tests:
name: "Rector lint checks"

runs-on: ${{ matrix.operating-system }}

strategy:
fail-fast: false
matrix:
php-version:
- "8.2"
- "8.3"
dependencies: [ highest ]
operating-system: [ ubuntu-latest]

steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
extensions: json, bcmath, curl, intl, mbstring

- name: "Install dependencies"
run: |
composer update ${{ env.COMPOSER_FLAGS }}

- name: "run Rector"
run: "make lint-rector"

- name: "is Rector check succeeded"
if: ${{ success() }}
run: |
echo '✅ Rector check pass, congratulations!'

- name: "is Rector check failed"
if: ${{ failure() }}
run: |
echo '::error:: ❗️ Rector check failed (╯°益°)╯彡┻━┻'
Loading