Skip to content

Commit 4820908

Browse files
authored
style: use dprint for formatting (#1311)
1 parent 07873ea commit 4820908

File tree

111 files changed

+1945
-2373
lines changed

Some content is hidden

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

111 files changed

+1945
-2373
lines changed

.commitlintrc.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"extends": ["@commitlint/config-conventional"],
3-
"rules": {
4-
"subject-case": [
5-
2,
6-
"never",
2+
"extends": ["@commitlint/config-conventional"],
3+
"rules": {
4+
"subject-case": [
5+
2,
6+
"never",
77
["sentence-case", "start-case", "pascal-case", "upper-case"]
8-
]
9-
}
8+
]
9+
}
1010
}

.github/workflows/close-stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ jobs:
2222
close-issue-message: "This issue was closed because it has been inactive for 1 day since being marked as stale."
2323
stale-pr-label: "Stale"
2424
stale-pr-message: "This pull request is stale because it has been open for 30 days with no activity."
25-
close-pr-message: "This pull request was closed because it has been inactive for 1 day since being marked as stale."
25+
close-pr-message: "This pull request was closed because it has been inactive for 1 day since being marked as stale."
2626
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/coding-conventions.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
# CSFixer and Rector are temporarily disabled until they have proper PHP 8.4 support
88
jobs:
9-
check-style:
9+
check-style:
1010
name: Run style check
1111
runs-on: ubuntu-latest
1212
steps:
@@ -23,7 +23,7 @@ jobs:
2323
composer update --prefer-dist --no-interaction
2424
composer mago:install-binary
2525
26-
- name: Run Mago
26+
- name: Run Mago
2727
run: |
2828
./vendor/bin/mago fmt --dry-run
2929
./vendor/bin/mago lint --reporting-format=github
@@ -34,10 +34,10 @@ jobs:
3434
- name: Install dependencies
3535
run: bun install --frozen-lockfile
3636

37-
- name: Run ESLint
38-
run: bun run lint
37+
- name: Format
38+
run: bun run fmt:check
3939

40-
phpstan:
40+
phpstan:
4141
name: "Run static analysis: PHPStan"
4242
runs-on: ubuntu-latest
4343
steps:

.github/workflows/integration-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ on:
44
pull_request:
55
workflow_dispatch:
66
schedule:
7-
- cron: '0 0 * * *'
7+
- cron: "0 0 * * *"
88
env:
99
POSTGRES_USER: runner
10-
POSTGRES_PASSWORD: ''
10+
POSTGRES_PASSWORD: ""
1111
POSTGRES_DB: postgres
1212

1313
jobs:
@@ -89,14 +89,14 @@ jobs:
8989
- name: Install dependencies
9090
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction
9191

92-
- name: 'Setup MySQL'
92+
- name: "Setup MySQL"
9393
if: ${{ matrix.database == 'mysql' }}
9494
uses: ankane/setup-mysql@v1
9595
with:
9696
mysql-version: 8.0
97-
database: 'app'
97+
database: "app"
9898

99-
- name: 'Setup PostgreSQL'
99+
- name: "Setup PostgreSQL"
100100
if: ${{ matrix.database == 'postgres' }}
101101
uses: ankane/setup-postgres@v1
102102

.github/workflows/isolated-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
workflow_dispatch:
66
schedule:
7-
- cron: '0 0 * * *'
7+
- cron: "0 0 * * *"
88

99
jobs:
1010
get_packages:

.github/workflows/publish-javascript-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release JavaScript packages
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- "v*"
77

88
jobs:
99
release:

.github/workflows/subsplit-packages.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: 'Sub-split packages'
1+
name: "Sub-split packages"
22

33
on:
44
push:
55
branches: [main]
6-
tags: ['v*']
6+
tags: ["v*"]
77
workflow_dispatch:
88

99
env:
@@ -40,36 +40,34 @@ jobs:
4040
matrix:
4141
package: ${{ fromJson(needs.get_packages.outputs.matrix) }}
4242
steps:
43-
- uses: actions/checkout@v4
43+
- uses: actions/checkout@v4
4444
# no tag
45-
-
46-
if: "!startsWith(github.ref, 'refs/tags/')"
45+
- if: "!startsWith(github.ref, 'refs/tags/')"
4746
uses: "symplify/[email protected]"
4847
with:
4948
# ↓ split "packages/console" directory
50-
package_directory: '${{ matrix.package.directory }}'
49+
package_directory: "${{ matrix.package.directory }}"
5150

5251
# ↓ into https://github.com/tempestphp/tempest-console repository
53-
repository_organization: '${{ matrix.package.organization }}'
54-
repository_name: '${{ matrix.package.repository }}'
52+
repository_organization: "${{ matrix.package.organization }}"
53+
repository_name: "${{ matrix.package.repository }}"
5554

5655
# ↓ the user signed under the split commit
5756
user_name: "aidan-casey"
5857
user_email: "[email protected]"
5958

6059
# with tag
61-
-
62-
if: "startsWith(github.ref, 'refs/tags/')"
60+
- if: "startsWith(github.ref, 'refs/tags/')"
6361
uses: "symplify/[email protected]"
6462
with:
6563
tag: ${GITHUB_REF#refs/tags/}
6664

6765
# ↓ split "packages/console" directory
68-
package_directory: '${{ matrix.package.directory }}'
66+
package_directory: "${{ matrix.package.directory }}"
6967

7068
# ↓ into https://github.com/tempestphp/tempest-console repository
71-
repository_organization: '${{ matrix.package.organization }}'
72-
repository_name: '${{ matrix.package.repository }}'
69+
repository_organization: "${{ matrix.package.organization }}"
70+
repository_name: "${{ matrix.package.repository }}"
7371

7472
# ↓ the user signed under the split commit
7573
user_name: "aidan-casey"

.github/workflows/trigger-tempest-app-qa.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
steps:
1212
- name: Trigger tempest/app QA workflow
1313
run: |
14-
repo_owner="tempestphp"
15-
repo_name="tempest-app"
16-
event_type="trigger-workflow"
17-
14+
repo_owner="tempestphp"
15+
repo_name="tempest-app"
16+
event_type="trigger-workflow"
17+
1818
curl -L \
1919
-X POST \
2020
-H "Accept: application/vnd.github+json" \

.github/workflows/trigger-tempest-clean-qa.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
steps:
1212
- name: Trigger tempest/app QA workflow
1313
run: |
14-
repo_owner="tempestphp"
15-
repo_name="tempest-app"
16-
event_type="trigger-workflow"
17-
14+
repo_owner="tempestphp"
15+
repo_name="tempest-app"
16+
event_type="trigger-workflow"
17+
1818
curl -L \
1919
-X POST \
2020
-H "Accept: application/vnd.github+json" \

.github/workflows/validate-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ jobs:
3131
cd "$dir" && composer validate
3232
cd -
3333
done
34-
34+
3535
- name: Validate package files
3636
run: bin/validate-packages

0 commit comments

Comments
 (0)