Skip to content

Commit dd9e5bb

Browse files
authored
Merge pull request #2361 from flow-php/feature-mago-formatter
Feature mago formatter
2 parents f2e7440 + 144da60 commit dd9e5bb

4,126 files changed

Lines changed: 106449 additions & 97561 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/setup-php-env/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ runs:
7070
coverage: ${{ inputs.coverage != '' && inputs.coverage || null }}
7171
env: ${{ inputs.php-env != '' && fromJSON(inputs.php-env) || fromJSON('{}') }}
7272

73+
- name: "Install just"
74+
uses: extractions/setup-just@v3
75+
7376
- name: "Install PIE"
7477
if: ${{ inputs.pie-extensions != '' }}
7578
shell: bash

.github/workflows/baseline.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
pie-extensions: "flow-php/pg-query-ext:1.x-dev"
4646

4747
- name: "Build PHAR file"
48-
run: "composer build:phar"
48+
run: "just phar"
4949

5050
- name: "Validate Flow PHAR"
5151
run: |
@@ -121,10 +121,10 @@ jobs:
121121
pie-extensions: "flow-php/pg-query-ext:1.x-dev"
122122

123123
- name: "Generate documentation"
124-
run: "composer build:docs"
124+
run: "just docs"
125125

126126
- name: "Build latest version Flow Phar for playground"
127-
run: "composer build:phar"
127+
run: "just phar"
128128

129129
- name: "Install Landing dependencies"
130130
run: "composer install --no-interaction --no-progress "
@@ -143,7 +143,7 @@ jobs:
143143
working-directory: "web/landing"
144144

145145
- name: "Generate Api References"
146-
run: "composer build:docs:api"
146+
run: "just docs-api"
147147

148148
- name: "Setup Node.js"
149149
uses: actions/setup-node@v4

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ jobs:
3333
cache-key-suffix: "-locked"
3434

3535
- name: "Build Docs"
36-
run: "composer build:docs"
36+
run: "just docs"
3737

3838
- name: Check for uncommitted changes
3939
run: |
4040
if [[ -n "$(git status --porcelain)" ]]; then
41-
echo "Uncommitted changes detected, please run `composer build:docs` and commit the changes."
41+
echo "Uncommitted changes detected, please run \`just docs\` and commit the changes."
4242
git status
4343
exit 1
4444
else

.github/workflows/job-arrow-extension.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
run: composer install --no-interaction --no-progress
9292

9393
- name: Run Parquet Integration Tests with Arrow
94-
run: composer test -- --testsuite=lib-parquet-integration
94+
run: just test --testsuite=lib-parquet-integration
9595

9696
- name: Upload to Codecov
9797
if: ${{ !cancelled() && matrix.php == '8.3' && matrix.os == 'ubuntu-latest' }}

.github/workflows/job-extension-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ jobs:
3838
cache-key-suffix: "-extensions"
3939

4040
- name: "Test Brotli"
41-
run: "composer test -- --group brotli-extension"
41+
run: "just test --group brotli-extension"
4242

4343
- name: "Test LZ4"
44-
run: "composer test -- --group lz4-extension"
44+
run: "just test --group lz4-extension"
4545

4646
- name: "Test ZSTD"
47-
run: "composer test -- --group zstd-extension"
47+
run: "just test --group zstd-extension"
4848

4949
- name: "Test Snappy"
50-
run: "composer test -- --group snappy-extension"
50+
run: "just test --group snappy-extension"
5151

5252
- name: Upload to Codecov
5353
if: ${{ !cancelled() && matrix.php-version == '8.3' }}

.github/workflows/job-mutation-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: "Mutation Tests"
4343
run: |
4444
if [ "${{ github.event_name }}" = "pull_request" ]; then
45-
composer test:mutation -- --git-diff-filter=AM --git-diff-base=origin/${{ github.base_ref }} --logger-github=false --log-verbosity=none
45+
just test-mutation --git-diff-filter=AM --git-diff-base=origin/${{ github.base_ref }} --logger-github=false --log-verbosity=none
4646
else
47-
composer test:mutation -- --logger-github=false --log-verbosity=none
47+
just test-mutation --logger-github=false --log-verbosity=none
4848
fi

.github/workflows/job-static-analyze.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,8 @@ jobs:
2828

2929
- name: "Create cache directories"
3030
run: |
31-
mkdir -p var/cs-fixer
3231
mkdir -p var/phpstan/cache
3332
34-
- name: "Cache cs-fixer results"
35-
uses: "actions/cache@v5"
36-
with:
37-
path: "var/cs-fixer"
38-
key: "php-${{ matrix.php-version }}-cache-cs-fixer-${{ github.run_id }}"
39-
restore-keys: |
40-
php-${{ matrix.php-version }}-cache-cs-fixer-
41-
4233
- name: "Cache phpstan results"
4334
uses: "actions/cache@v5"
4435
with:
@@ -47,14 +38,8 @@ jobs:
4738
restore-keys: |
4839
php-${{ matrix.php-version }}-cache-phpstan-
4940
50-
- name: "Monorepo Validate"
51-
run: "composer test:monorepo"
52-
53-
- name: "Static Analyze - CS Fixer"
54-
run: "composer static:analyze:cs-fixer"
55-
56-
- name: "Static Analyze - PHPStan"
57-
run: "composer static:analyze:phpstan -- --error-format=github"
41+
- name: "Lint"
42+
run: "just lint"
5843

59-
- name: "Static Analyze - Rector"
60-
run: "composer static:analyze:rector"
44+
- name: "Static Analyze"
45+
run: "just analyze --error-format=github"

.github/workflows/job-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120

121121
- name: "Test"
122122
timeout-minutes: 10
123-
run: "composer test -- --coverage-clover=./var/phpunit/coverage/clover/coverage.xml --log-junit ./var/phpunit/logs/junit.xml"
123+
run: "just test --coverage-clover=./var/phpunit/coverage/clover/coverage.xml --log-junit ./var/phpunit/logs/junit.xml"
124124
env:
125125
PGSQL_DATABASE_URL: pgsql://postgres:postgres@127.0.0.1:${{ job.services.postgres.ports[5432] }}/postgres?serverVersion=11&charset=utf8
126126
MYSQL_DATABASE_URL: mysql://mysql:mysql@127.0.0.1:${{ job.services.mysql.ports[3306] }}/mysql

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
pie-extensions: "flow-php/pg-query-ext:1.x-dev"
3333

3434
- name: "Build PHAR file"
35-
run: "composer build:phar"
35+
run: "just phar"
3636

3737
- name: "Validate Flow PHAR"
3838
run: |

.php-cs-fixer.php

Lines changed: 0 additions & 167 deletions
This file was deleted.

0 commit comments

Comments
 (0)