Skip to content

Commit 7f04939

Browse files
authored
Merge pull request #92 from ghostwriter/feature/renovate
Prepare for Renovate with reusable workflows
2 parents 3b3d058 + d207d1f commit 7f04939

7 files changed

+356
-484
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,8 @@ on:
44
pull_request:
55
push:
66
branches:
7-
- '[0-9]+.[0-9]+.x'
8-
- 'refs/pull/*'
7+
tags:
98

109
jobs:
11-
matrix:
12-
name: Generate job matrix
13-
runs-on: ubuntu-latest
14-
outputs:
15-
matrix: ${{ steps.matrix.outputs.matrix }}
16-
steps:
17-
- name: Gather CI configuration
18-
id: matrix
19-
uses: laminas/laminas-ci-matrix-action@v1
20-
21-
qa:
22-
name: QA Checks
23-
needs: [matrix]
24-
runs-on: ${{ matrix.operatingSystem }}
25-
strategy:
26-
fail-fast: false
27-
matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }}
28-
steps:
29-
- name: ${{ matrix.name }}
30-
uses: laminas/laminas-continuous-integration-action@v1
31-
with:
32-
job: ${{ matrix.job }}
10+
ci:
11+
uses: laminas/workflow-continuous-integration/.github/workflows/continuous-integration.yml@1.x
Lines changed: 6 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# Alternate workflow example.
2-
# This one is identical to the one in release-on-milestone.yml, with one change:
3-
# the Release step uses the ORGANIZATION_ADMIN_TOKEN instead, to allow it to
4-
# trigger a release workflow event. This is useful if you have other actions
5-
# that intercept that event.
6-
71
name: "Automatic Releases"
82

93
on:
@@ -13,49 +7,9 @@ on:
137

148
jobs:
159
release:
16-
name: "GIT tag, release & create merge-up PR"
17-
runs-on: ubuntu-latest
18-
19-
steps:
20-
- name: "Checkout"
21-
uses: "actions/checkout@v2"
22-
23-
- name: "Release"
24-
uses: "laminas/automatic-releases@v1"
25-
with:
26-
command-name: "laminas:automatic-releases:release"
27-
env:
28-
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
29-
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
30-
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
31-
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
32-
33-
- name: "Create Merge-Up Pull Request"
34-
uses: "laminas/automatic-releases@v1"
35-
with:
36-
command-name: "laminas:automatic-releases:create-merge-up-pull-request"
37-
env:
38-
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
39-
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
40-
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
41-
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
42-
43-
- name: "Create and/or Switch to new Release Branch"
44-
uses: "laminas/automatic-releases@v1"
45-
with:
46-
command-name: "laminas:automatic-releases:switch-default-branch-to-next-minor"
47-
env:
48-
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
49-
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
50-
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
51-
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
52-
53-
- name: "Create new milestones"
54-
uses: "laminas/automatic-releases@v1"
55-
with:
56-
command-name: "laminas:automatic-releases:create-milestones"
57-
env:
58-
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
59-
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
60-
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
61-
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
10+
uses: laminas/workflow-automatic-releases/.github/workflows/release-on-milestone-closed.yml@1.x
11+
secrets:
12+
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
13+
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
14+
ORGANIZATION_ADMIN_TOKEN: ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
15+
SIGNING_SECRET_KEY: ${{ secrets.SIGNING_SECRET_KEY }}

composer.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
"forum": "https://discourse.laminas.dev/"
1616
},
1717
"require": {
18-
"php": "^7.3 || ~8.0.0 || ~8.1.0"
18+
"php": ">=7.4, <8.2"
1919
},
2020
"require-dev": {
21-
"phpunit/phpunit": "^9.3",
22-
"psalm/plugin-phpunit": "^0.15.1",
23-
"squizlabs/php_codesniffer": "^3.5",
24-
"vimeo/psalm": "^4.6"
21+
"phpunit/phpunit": "^9.5.14",
22+
"psalm/plugin-phpunit": "^0.15.2",
23+
"squizlabs/php_codesniffer": "^3.6.2",
24+
"vimeo/psalm": "^4.21.0"
2525
},
2626
"autoload": {
2727
"files": [
@@ -49,7 +49,10 @@
4949
}
5050
},
5151
"config": {
52-
"sort-packages": true
52+
"sort-packages": true,
53+
"platform": {
54+
"php": "7.4.99"
55+
}
5356
},
5457
"scripts": {
5558
"cs-check": "phpcs",

0 commit comments

Comments
 (0)