Skip to content

Commit 1445fa2

Browse files
authored
Cleanup GitHub workflows (#62)
1 parent 06ca0b5 commit 1445fa2

6 files changed

Lines changed: 78 additions & 107 deletions

File tree

‎.github/workflows/bc.yml‎

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,23 @@
1+
name: backwards compatibility
2+
13
on:
24
pull_request:
3-
paths-ignore:
4-
- 'docs/**'
5-
- 'README.md'
6-
- 'CHANGELOG.md'
7-
- '.gitignore'
8-
- '.gitattributes'
9-
- 'infection.json.dist'
10-
- 'phpunit.xml.dist'
11-
- 'psalm.xml'
5+
paths: &paths
6+
- 'config/**'
7+
- 'src/**'
8+
- 'composer.json'
9+
- '.github/workflows/bc.yml'
1210
push:
1311
branches: ['master']
14-
paths-ignore:
15-
- 'docs/**'
16-
- 'README.md'
17-
- 'CHANGELOG.md'
18-
- '.gitignore'
19-
- '.gitattributes'
20-
- 'infection.json.dist'
21-
- 'phpunit.xml.dist'
22-
- 'psalm.xml'
23-
24-
name: backwards compatibility
12+
paths: *paths
2513

2614
permissions:
2715
contents: read
2816

17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
2921
jobs:
3022
roave_bc_check:
3123
uses: yiisoft/actions/.github/workflows/bc.yml@master

‎.github/workflows/build.yml‎

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,30 @@
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-
- 'infection.json.dist'
10-
- 'psalm.xml'
11-
5+
paths: &paths
6+
- 'config/**'
7+
- 'src/**'
8+
- 'tests/**'
9+
- 'phpunit.xml.dist'
10+
- 'composer.json'
11+
- '.github/workflows/build.yml'
1212
push:
1313
branches: ['master']
14-
paths-ignore:
15-
- 'docs/**'
16-
- 'README.md'
17-
- 'CHANGELOG.md'
18-
- '.gitignore'
19-
- '.gitattributes'
20-
- 'infection.json.dist'
21-
- 'psalm.xml'
22-
23-
name: build
14+
paths: *paths
2415

2516
permissions:
2617
contents: read
2718

19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
2823
jobs:
2924
phpunit:
3025
uses: yiisoft/actions/.github/workflows/phpunit.yml@master
3126
secrets:
32-
codecovToken: ${{ secrets.CODECOV_TOKEN }}
27+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3328
with:
3429
ini-values: pcov.directory=$GITHUB_WORKSPACE, pcov.exclude=#^(?!($GITHUB_WORKSPACE/config/|$GITHUB_WORKSPACE/src/)).*#
3530
os: >-

‎.github/workflows/composer-require-checker.yml‎

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,24 @@
1+
name: Composer require checker
2+
13
on:
24
pull_request:
3-
paths-ignore:
4-
- 'docs/**'
5-
- 'README.md'
6-
- 'CHANGELOG.md'
7-
- '.gitignore'
8-
- '.gitattributes'
9-
- 'infection.json.dist'
10-
- 'phpunit.xml.dist'
11-
- 'psalm.xml'
12-
5+
paths: &paths
6+
- 'config/**'
7+
- 'src/**'
8+
- 'tests/**'
9+
- 'composer.json'
10+
- '.github/workflows/composer-require-checker.yml'
1311
push:
1412
branches: ['master']
15-
paths-ignore:
16-
- 'docs/**'
17-
- 'README.md'
18-
- 'CHANGELOG.md'
19-
- '.gitignore'
20-
- '.gitattributes'
21-
- 'infection.json.dist'
22-
- 'phpunit.xml.dist'
23-
- 'psalm.xml'
24-
25-
name: Composer require checker
13+
paths: *paths
2614

2715
permissions:
2816
contents: read
2917

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
3022
jobs:
3123
composer-require-checker:
3224
uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@master

‎.github/workflows/mutation.yml‎

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
1+
name: mutation test
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+
- 'config/**'
7+
- 'src/**'
8+
- 'tests/**'
9+
- 'phpunit.xml.dist'
10+
- 'infection.json.dist'
11+
- 'composer.json'
12+
- '.github/workflows/mutation.yml'
1113
push:
1214
branches: ['master']
13-
paths-ignore:
14-
- 'docs/**'
15-
- 'README.md'
16-
- 'CHANGELOG.md'
17-
- '.gitignore'
18-
- '.gitattributes'
19-
- 'psalm.xml'
20-
21-
name: mutation test
15+
paths: *paths
2216

2317
permissions:
2418
contents: read
2519

20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.ref }}
22+
cancel-in-progress: true
23+
2624
jobs:
2725
mutation:
2826
uses: yiisoft/actions/.github/workflows/roave-infection.yml@master

‎.github/workflows/static.yml‎

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,24 @@
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-
- 'infection.json.dist'
10-
- 'phpunit.xml.dist'
11-
5+
paths: &paths
6+
- 'config/**'
7+
- 'src/**'
8+
- 'psalm.xml'
9+
- 'composer.json'
10+
- '.github/workflows/static.yml'
1211
push:
1312
branches: ['master']
14-
paths-ignore:
15-
- 'docs/**'
16-
- 'README.md'
17-
- 'CHANGELOG.md'
18-
- '.gitignore'
19-
- '.gitattributes'
20-
- 'infection.json.dist'
21-
- 'phpunit.xml.dist'
22-
23-
name: static analysis
13+
paths: *paths
2414

2515
permissions:
2616
contents: read
2717

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
2822
jobs:
2923
psalm:
3024
uses: yiisoft/actions/.github/workflows/psalm.yml@master

‎.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)