Skip to content

Commit ec64e1f

Browse files
committed
ci: editorconfig
1 parent 2aca311 commit ec64e1f

File tree

4 files changed

+97
-97
lines changed

4 files changed

+97
-97
lines changed

.editorconfig

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
; This file is for unifying the coding style for different editors and IDEs.
2-
; More information at http://editorconfig.org
3-
41
root = true
52

63
[*]
74
charset = utf-8
8-
indent_size = 4
9-
indent_style = space
105
end_of_line = lf
116
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
129
trim_trailing_whitespace = true
1310

1411
[*.md]
1512
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2
+37-37
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
11
name: Continuous Integration
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
- '*.x'
8-
pull_request:
9-
schedule:
10-
- cron: '0 0 * * *'
4+
push:
5+
branches:
6+
- master
7+
- '*.x'
8+
pull_request:
9+
schedule:
10+
- cron: '0 0 * * *'
1111

1212
jobs:
13-
tests:
13+
tests:
1414

15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-latest
1616

17-
strategy:
18-
fail-fast: true
19-
matrix:
20-
php: [8.2, 8.3, 8.4]
21-
stability: [prefer-stable]
17+
strategy:
18+
fail-fast: true
19+
matrix:
20+
php: [ 8.2, 8.3, 8.4 ]
21+
stability: [ prefer-stable ]
2222

23-
name: PHP ${{ matrix.php }} - STABILITY ${{ matrix.stability }}
23+
name: PHP ${{ matrix.php }} - STABILITY ${{ matrix.stability }}
2424

25-
steps:
26-
- name: Checkout code
27-
uses: actions/checkout@v2
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v2
2828

29-
- name: Setup PHP
30-
uses: shivammathur/setup-php@v2
31-
with:
32-
php-version: ${{ matrix.php }}
33-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, gd, memcached, oci8
34-
tools: composer:v2
35-
coverage: none
29+
- name: Setup PHP
30+
uses: shivammathur/setup-php@v2
31+
with:
32+
php-version: ${{ matrix.php }}
33+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, gd, memcached, oci8
34+
tools: composer:v2
35+
coverage: none
3636

37-
- name: Setup Memcached
38-
uses: niden/actions-memcached@v7
37+
- name: Setup Memcached
38+
uses: niden/actions-memcached@v7
3939

40-
- name: Setup problem matchers
41-
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
40+
- name: Setup problem matchers
41+
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
4242

43-
- name: Install dependencies
44-
uses: nick-invision/retry@v1
45-
with:
46-
timeout_minutes: 5
47-
max_attempts: 5
48-
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
43+
- name: Install dependencies
44+
uses: nick-invision/retry@v1
45+
with:
46+
timeout_minutes: 5
47+
max_attempts: 5
48+
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
4949

50-
- name: Execute tests
51-
run: vendor/bin/phpunit
50+
- name: Execute tests
51+
run: vendor/bin/phpunit

.github/workflows/pint.yml

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
name: PHP Linting
22
on:
3-
pull_request:
4-
push:
5-
branches:
6-
- master
7-
- '*.x'
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
- '*.x'
88
jobs:
9-
phplint:
10-
runs-on: ubuntu-latest
9+
phplint:
10+
runs-on: ubuntu-latest
1111

12-
permissions:
13-
contents: write
14-
pull-requests: write
12+
permissions:
13+
contents: write
14+
pull-requests: write
1515

16-
steps:
17-
- uses: actions/checkout@v4
18-
with:
19-
ref: ${{ github.head_ref }}
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
ref: ${{ github.head_ref }}
2020

21-
- name: "laravel-pint"
22-
uses: aglipanci/laravel-pint-action@latest
23-
with:
24-
preset: laravel
25-
verboseMode: true
21+
- name: "laravel-pint"
22+
uses: aglipanci/laravel-pint-action@latest
23+
with:
24+
preset: laravel
25+
verboseMode: true
2626

27-
- uses: stefanzweifel/git-auto-commit-action@v5
28-
with:
29-
commit_message: "fix: pint"
27+
- uses: stefanzweifel/git-auto-commit-action@v5
28+
with:
29+
commit_message: "fix: pint"

.github/workflows/static-analysis.yml

+33-33
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
name: Static Analysis
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
- '*.x'
4+
push:
5+
branches:
6+
- master
7+
- '*.x'
88

9-
pull_request:
9+
pull_request:
1010

11-
schedule:
12-
- cron: '0 0 * * *'
11+
schedule:
12+
- cron: '0 0 * * *'
1313

1414
jobs:
15-
static-analysis-phpstan:
16-
17-
name: Source Code
18-
runs-on: ubuntu-latest
19-
20-
steps:
21-
- name: Checkout code
22-
uses: actions/checkout@v4
23-
24-
- name: Setup PHP
25-
uses: shivammathur/setup-php@v2
26-
with:
27-
php-version: 8.2
28-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, gd, memcached, oci8
29-
tools: composer:v2
30-
coverage: none
31-
32-
- name: Install dependencies
33-
uses: nick-fields/retry@v3
34-
with:
35-
timeout_minutes: 5
36-
max_attempts: 5
37-
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
38-
39-
- name: Run Static Analysis
40-
run: vendor/bin/phpstan
15+
static-analysis-phpstan:
16+
17+
name: Source Code
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v4
23+
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: 8.2
28+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, gd, memcached, oci8
29+
tools: composer:v2
30+
coverage: none
31+
32+
- name: Install dependencies
33+
uses: nick-fields/retry@v3
34+
with:
35+
timeout_minutes: 5
36+
max_attempts: 5
37+
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
38+
39+
- name: Run Static Analysis
40+
run: vendor/bin/phpstan

0 commit comments

Comments
 (0)