Skip to content

Commit d8be6c7

Browse files
committed
Bump to PHP 8.3
* Also update all QA tooling * Swap Dependabot for Renovate
1 parent 3e58cab commit d8be6c7

19 files changed

+4646
-3958
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/renovate.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"github>WyriHaximus/renovate-config:php-package"
5+
]
6+
}

.github/workflows/ci.yml

Lines changed: 12 additions & 148 deletions
Original file line numberDiff line numberDiff line change
@@ -1,153 +1,17 @@
11
name: Continuous Integration
22
on:
33
push:
4+
branches:
5+
- 'main'
6+
- 'master'
7+
- 'refs/heads/v[0-9]+.[0-9]+.[0-9]+'
48
pull_request:
9+
## This workflow needs the `pull-request` permissions to work for the package diffing
10+
## Refs: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#permissions
11+
permissions:
12+
pull-requests: write
13+
contents: read
514
jobs:
6-
package-name:
7-
name: Package Name
8-
runs-on: ubuntu-latest
9-
needs:
10-
- lint-json
11-
outputs:
12-
package-name: ${{ steps.package-name.outputs.package-name }}
13-
steps:
14-
- uses: actions/checkout@v1
15-
- id: package-name
16-
run: |
17-
printf "::set-output name=package-name::[\"%s\"]" $(docker run --rm -v "`pwd`:`pwd`" jess/jq jq -r -c '.name' "${GITHUB_WORKSPACE}/composer.json")
18-
supported-versions-matrix:
19-
name: Supported Versions Matrix
20-
runs-on: ubuntu-latest
21-
needs:
22-
- lint-yaml
23-
- lint-json
24-
outputs:
25-
version: ${{ steps.supported-versions-matrix.outputs.version }}
26-
steps:
27-
- uses: actions/checkout@v1
28-
- id: supported-versions-matrix
29-
uses: WyriHaximus/github-action-composer-php-versions-in-range@v1
30-
supported-checks-matrix:
31-
name: Supported Checks Matrix
32-
runs-on: ubuntu-latest
33-
needs:
34-
- lint-yaml
35-
- composer-install
36-
outputs:
37-
check: ${{ steps.supported-checks-matrix.outputs.check }}
38-
steps:
39-
- uses: actions/checkout@v1
40-
- id: supported-checks-matrix
41-
name: Generate check
42-
run: |
43-
printf "Checks found: %s\r\n" $(make task-list-ci)
44-
printf "::set-output name=check::%s" $(make task-list-ci)
45-
composer-install:
46-
strategy:
47-
fail-fast: false
48-
matrix:
49-
php: ${{ fromJson(needs.supported-versions-matrix.outputs.version) }}
50-
composer: [lowest, current, highest]
51-
needs:
52-
- lint-yaml
53-
- lint-json
54-
- supported-versions-matrix
55-
runs-on: ubuntu-latest
56-
container:
57-
image: ghcr.io/wyrihaximusnet/php:${{ matrix.php }}-nts-buster-dev-root
58-
steps:
59-
- uses: actions/checkout@v1
60-
- name: Cache composer packages
61-
uses: actions/cache@v1
62-
with:
63-
path: ./vendor/
64-
key: ${{ matrix.composer }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
65-
- name: Install Dependencies
66-
run: composer update --prefer-lowest --no-progress --ansi --no-interaction --prefer-dist -o
67-
if: matrix.composer == 'lowest'
68-
- name: Install Dependencies
69-
run: composer install --ansi --no-progress --no-interaction --prefer-dist -o
70-
if: matrix.composer == 'current'
71-
- name: Install Dependencies
72-
run: composer update --ansi --no-progress --no-interaction --prefer-dist -o
73-
if: matrix.composer == 'highest'
74-
qa:
75-
strategy:
76-
fail-fast: false
77-
matrix:
78-
php: ${{ fromJson(needs.supported-versions-matrix.outputs.version) }}
79-
composer: [lowest, current, highest]
80-
check: ${{ fromJson(needs.supported-checks-matrix.outputs.check) }}
81-
needs:
82-
- lint-yaml
83-
- lint-json
84-
- composer-install
85-
- supported-checks-matrix
86-
- supported-versions-matrix
87-
runs-on: ubuntu-latest
88-
container:
89-
image: ghcr.io/wyrihaximusnet/php:${{ matrix.php }}-nts-buster-dev-root
90-
services:
91-
redis:
92-
image: redis
93-
options: >-
94-
--health-cmd "redis-cli ping"
95-
--health-interval 1s
96-
--health-timeout 5s
97-
--health-retries 50
98-
steps:
99-
- uses: actions/checkout@v1
100-
- name: Cache composer packages
101-
uses: actions/cache@v1
102-
with:
103-
path: ./vendor/
104-
key: ${{ matrix.composer }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
105-
- name: Install Dependencies
106-
run: (test -f vendor && true ) || composer update --prefer-lowest --no-progress --ansi --no-interaction --prefer-dist -o
107-
if: matrix.composer == 'lowest'
108-
- name: Install Dependencies
109-
run: (test -f vendor && true ) || composer install --ansi --no-progress --no-interaction --prefer-dist -o
110-
if: matrix.composer == 'current'
111-
- name: Install Dependencies
112-
run: (test -f vendor && true ) || composer update --ansi --no-progress --no-interaction --prefer-dist -o
113-
if: matrix.composer == 'highest'
114-
- name: Fetch Tags
115-
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true
116-
if: matrix.check == 'backward-compatibility-check'
117-
- run: make ${{ matrix.check }}
118-
env:
119-
REDIS_DSN: redis://redis:6379/6
120-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
121-
COVERALLS_RUN_LOCALLY: ${{ secrets.COVERALLS_RUN_LOCALLY }}
122-
lint-yaml:
123-
name: Lint YAML
124-
runs-on: ubuntu-latest
125-
steps:
126-
- uses: actions/checkout@v1
127-
- name: yaml-lint
128-
uses: ibiqlik/action-yamllint@v3
129-
with:
130-
config_data: |
131-
extends: default
132-
rules:
133-
line-length: disable
134-
document-start: disable
135-
truthy: disable
136-
lint-json:
137-
name: Lint JSON
138-
runs-on: ubuntu-latest
139-
steps:
140-
- uses: actions/checkout@v1
141-
- name: json-syntax-check
142-
uses: limitusus/json-syntax-check@v1
143-
with:
144-
pattern: "\\.json$"
145-
check-mark:
146-
name: ✔️
147-
needs:
148-
- lint-yaml
149-
- lint-json
150-
- qa
151-
runs-on: ubuntu-latest
152-
steps:
153-
- run: echo "✔️"
15+
ci:
16+
name: Continuous Integration
17+
uses: WyriHaximus/github-workflows/.github/workflows/package.yaml@main

.github/workflows/craft-release.yaml

Lines changed: 0 additions & 56 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release Management
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- labeled
7+
- unlabeled
8+
- synchronize
9+
- reopened
10+
- milestoned
11+
- demilestoned
12+
- ready_for_review
13+
milestone:
14+
types:
15+
- closed
16+
permissions:
17+
contents: write
18+
issues: write
19+
pull-requests: write
20+
jobs:
21+
release-managment:
22+
name: Create Release
23+
uses: WyriHaximus/github-workflows/.github/workflows/package-release-managment.yaml@main
24+
with:
25+
milestone: ${{ github.event.milestone.title }}
26+
description: ${{ github.event.milestone.title }}

.github/workflows/set-milestone-on-pr.yaml

Lines changed: 0 additions & 64 deletions
This file was deleted.

.idea/php-psr-3-callable-throwable-logger.iml

Lines changed: 37 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)