Skip to content

Commit 2b850c5

Browse files
committed
Next-gen changelog generator
1 parent 60d2427 commit 2b850c5

13 files changed

+2354
-90
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+
name: "Build Changelog Generator"
4+
5+
on:
6+
pull_request:
7+
paths:
8+
- 'changelog-generator/**'
9+
- '.github/workflows/changelog-generator.yml'
10+
push:
11+
branches:
12+
- "1.8.x"
13+
paths:
14+
- 'changelog-generator/**'
15+
- '.github/workflows/changelog-generator.yml'
16+
17+
concurrency:
18+
group: changelog-${{ github.head_ref || github.run_id }} # will be canceled on subsequent pushes in pull requests but not branches
19+
cancel-in-progress: true
20+
21+
jobs:
22+
changelog-generator:
23+
name: "Build Changelog Generator"
24+
25+
runs-on: "ubuntu-latest"
26+
timeout-minutes: 60
27+
28+
steps:
29+
- name: "Checkout"
30+
uses: actions/checkout@v3
31+
32+
- name: "Install PHP"
33+
uses: "shivammathur/setup-php@v2"
34+
with:
35+
coverage: "none"
36+
php-version: "8.1"
37+
38+
- name: "Install dependencies"
39+
run: "composer install --no-interaction --no-progress"
40+
41+
- name: "Install Changelog Generator dependencies"
42+
working-directory: "changelog-generator"
43+
run: "composer install --no-interaction --no-progress"
44+
45+
- name: "PHPStan"
46+
working-directory: "changelog-generator"
47+
run: "../bin/phpstan"

.github/workflows/e2e-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ on:
77
paths-ignore:
88
- 'compiler/**'
99
- 'apigen/**'
10+
- 'changelog-generator/**'
1011
push:
1112
branches:
1213
- "1.8.x"
1314
paths-ignore:
1415
- 'compiler/**'
1516
- 'apigen/**'
17+
- 'changelog-generator/**'
1618

1719
env:
1820
COMPOSER_ROOT_VERSION: "1.8.x-dev"

.github/workflows/static-analysis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ on:
77
paths-ignore:
88
- 'compiler/**'
99
- 'apigen/**'
10+
- 'changelog-generator/**'
1011
push:
1112
branches:
1213
- "1.8.x"
1314
paths-ignore:
1415
- 'compiler/**'
1516
- 'apigen/**'
17+
- 'changelog-generator/**'
1618

1719
env:
1820
COMPOSER_ROOT_VERSION: "1.8.x-dev"

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ on:
77
paths-ignore:
88
- 'compiler/**'
99
- 'apigen/**'
10+
- 'changelog-generator/**'
1011
push:
1112
branches:
1213
- "1.8.x"
1314
paths-ignore:
1415
- 'compiler/**'
1516
- 'apigen/**'
17+
- 'changelog-generator/**'
1618

1719
env:
1820
COMPOSER_ROOT_VERSION: "1.8.x-dev"

changelog-generator/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/vendor

changelog-generator/composer.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "phpstan/changelog-generator",
3+
"require": {
4+
"php": "^8.1",
5+
"php-http/client-common": "^2.5",
6+
"php-http/discovery": "^1.14",
7+
"guzzlehttp/guzzle": "^7.4",
8+
"http-interop/http-factory-guzzle": "^1.2",
9+
"knplabs/github-api": "^3.7",
10+
"symfony/console": "^6.1"
11+
},
12+
"autoload": {
13+
"psr-4": {
14+
"PHPStan\\ChangelogGenerator\\": "src"
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)