Skip to content

Commit bbf9ecb

Browse files
committed
Cleanup GitHub workflows
1 parent 17980cd commit bbf9ecb

5 files changed

Lines changed: 71 additions & 81 deletions

File tree

.github/workflows/build.yml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,28 @@
1+
name: build
2+
13
on:
24
pull_request:
3-
paths-ignore:
4-
- 'docs/**'
5-
- 'README.md'
6-
- 'CHANGELOG.md'
7-
- '.gitignore'
8-
- '.gitattributes'
9-
- 'psalm.xml'
10-
5+
paths: &paths
6+
- 'public/**'
7+
- 'src/**'
8+
- 'config/**'
9+
- 'tests/**'
10+
- 'codeception.yml'
11+
- 'composer.json'
12+
- 'yii'
13+
- 'yii.bat'
14+
- '.github/workflows/build.yml'
1115
push:
1216
branches: ['master']
13-
paths-ignore:
14-
- 'docs/**'
15-
- 'README.md'
16-
- 'CHANGELOG.md'
17-
- '.gitignore'
18-
- '.gitattributes'
19-
- 'psalm.xml'
17+
paths: *paths
2018

21-
name: build
19+
permissions:
20+
contents: read
2221

2322
concurrency:
2423
group: ${{ github.workflow }}-${{ github.ref }}
2524
cancel-in-progress: true
2625

27-
permissions:
28-
contents: read
29-
3026
jobs:
3127
codeception:
3228
name: PHP ${{ matrix.php }}-${{ matrix.os }}

.github/workflows/composer-dependency-analyzer.yml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,28 @@
1+
name: Composer dependency analyzer
2+
13
on:
24
pull_request:
3-
paths-ignore:
4-
- 'docs/**'
5-
- 'README.md'
6-
- 'CHANGELOG.md'
7-
- '.gitignore'
8-
- '.gitattributes'
9-
- 'phpunit.xml.dist'
10-
- 'psalm.xml'
11-
5+
paths: &paths
6+
- 'public/**'
7+
- 'src/**'
8+
- 'config/**'
9+
- 'tests/**'
10+
- 'composer.json'
11+
- 'composer-dependency-analyser.php'
12+
- 'yii'
13+
- 'yii.bat'
14+
- '.github/workflows/composer-dependency-analyzer.yml'
1215
push:
1316
branches: ['master']
14-
paths-ignore:
15-
- 'docs/**'
16-
- 'README.md'
17-
- 'CHANGELOG.md'
18-
- '.gitignore'
19-
- '.gitattributes'
20-
- 'phpunit.xml.dist'
21-
- 'psalm.xml'
17+
paths: *paths
2218

23-
name: Composer dependency analyzer
19+
permissions:
20+
contents: read
2421

2522
concurrency:
2623
group: ${{ github.workflow }}-${{ github.ref }}
2724
cancel-in-progress: true
2825

29-
permissions:
30-
contents: read
31-
3226
jobs:
3327
analyzer:
3428
name: PHP ${{ matrix.php }}-${{ matrix.os }}

.github/workflows/cs.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
name: Code Style
22

3-
concurrency:
4-
group: ${{ github.workflow }}-${{ github.ref }}
5-
cancel-in-progress: true
3+
on:
4+
pull_request:
5+
paths:
6+
- 'public/**'
7+
- 'src/**'
8+
- 'config/**'
9+
- 'tests/**'
10+
- '.php-cs-fixer.php'
11+
- 'rector.php'
12+
- 'composer.json'
13+
- 'yii'
14+
- 'yii.bat'
15+
- '.github/workflows/cs.yml'
616

717
permissions:
818
contents: read
919

10-
on:
11-
pull_request:
12-
paths-ignore:
13-
- 'docs/**'
14-
- 'README.md'
15-
- 'CHANGELOG.md'
16-
- '.gitignore'
17-
- '.gitattributes'
18-
- 'psalm.xml'
20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.ref }}
22+
cancel-in-progress: true
1923

2024
jobs:
2125
cs-fix:

.github/workflows/static.yml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,27 @@
1+
name: static analysis
2+
13
on:
24
pull_request:
3-
paths-ignore:
4-
- 'docs/**'
5-
- 'README.md'
6-
- 'CHANGELOG.md'
7-
- '.gitignore'
8-
- '.gitattributes'
9-
- 'phpunit.xml.dist'
10-
5+
paths: &paths
6+
- 'public/**'
7+
- 'src/**'
8+
- 'config/**'
9+
- 'psalm.xml'
10+
- 'composer.json'
11+
- 'yii'
12+
- 'yii.bat'
13+
- '.github/workflows/static.yml'
1114
push:
1215
branches: ['master']
13-
paths-ignore:
14-
- 'docs/**'
15-
- 'README.md'
16-
- 'CHANGELOG.md'
17-
- '.gitignore'
18-
- '.gitattributes'
19-
- 'phpunit.xml.dist'
16+
paths: *paths
2017

21-
name: static analysis
18+
permissions:
19+
contents: read
2220

2321
concurrency:
2422
group: ${{ github.workflow }}-${{ github.ref }}
2523
cancel-in-progress: true
2624

27-
permissions:
28-
contents: read
29-
3025
jobs:
3126
psalm:
3227
name: PHP ${{ matrix.php }}-${{ matrix.os }}
@@ -41,6 +36,7 @@ jobs:
4136
- "8.2"
4237
- "8.3"
4338
- "8.4"
39+
- "8.5"
4440

4541
steps:
4642
- name: Checkout

.github/workflows/zizmor.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
name: GitHub Actions Security Analysis with zizmor 🌈
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
- main
8-
paths:
9-
- '.github/**.yml'
10-
- '.github/**.yaml'
114
pull_request:
12-
paths:
5+
paths: &paths
136
- '.github/**.yml'
147
- '.github/**.yaml'
8+
push:
9+
branches: ['master']
10+
paths: *paths
1511

1612
permissions:
17-
actions: read # Required by zizmor when reading workflow metadata through the API.
18-
contents: read # Required to read workflow files.
13+
actions: read # Required by zizmor when reading workflow metadata through the API
14+
contents: read # Required to read workflow files
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
1919

2020
jobs:
2121
zizmor:

0 commit comments

Comments
 (0)