Skip to content

Commit cdb45e1

Browse files
committed
Bump to PHP 8.2+
1 parent 8abd994 commit cdb45e1

30 files changed

+6838
-4439
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,14 @@ trim_trailing_whitespace = true
1010
[*.json]
1111
indent_size = 2
1212

13+
[*.yml]
14+
indent_size = 2
15+
16+
[*.yaml]
17+
indent_size = 2
18+
1319
[Makefile]
1420
indent_style = tab
21+
22+
[*.neon]
23+
indent_style = tab

.gitattributes

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# Ignoring files for distribution archieves
2-
examples/ export-ignore
2+
.github/ export-ignore
3+
etc/ export-ignore
34
tests/ export-ignore
4-
.dunitconfig export-ignore
5-
.travis.yml export-ignore
6-
.gitignore export-ignore
5+
var/ export-ignore
6+
.devcontainer.json export-ignore
7+
.editorconfig export-ignore
78
.gitattributes export-ignore
8-
.scrutinizer.yml export-ignore
9-
.styleci.yml export-ignore
10-
appveyor.yml export-ignore
11-
phpunit.xml.dist export-ignore
9+
.gitignore export-ignore
10+
CONTRIBUTING.md export-ignore
11+
infection.json.dist export-ignore
12+
Makefile export-ignore
13+
README.md export-ignore

.github/boring-cyborg.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
labelPRBasedOnFilePath:
2+
"Documentation 📚":
3+
- README.md
4+
- CONTRIBUTING.md
25
"Dependencies 📦":
36
- Dockerfile*
47
- composer.*

.github/workflows/ci.yml

Lines changed: 12 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +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-
supported-versions-matrix:
7-
name: Supported Versions Matrix
8-
runs-on: ubuntu-latest
9-
outputs:
10-
version: ${{ steps.supported-versions-matrix.outputs.version }}
11-
steps:
12-
- uses: actions/checkout@v2
13-
- id: supported-versions-matrix
14-
uses: WyriHaximus/github-action-composer-php-versions-in-range@v1
15-
generate-checks-strategy:
16-
name: Generate Checks
17-
runs-on: ubuntu-latest
18-
outputs:
19-
check: ${{ steps.generate-checks-strategy.outputs.check }}
20-
steps:
21-
- uses: actions/checkout@v2
22-
- id: generate-checks-strategy
23-
name: Generate check
24-
run: |
25-
printf "Checks found: %s\r\n" $(make task-list-ci)
26-
printf "::set-output name=check::%s" $(make task-list-ci)
27-
lint:
28-
runs-on: ubuntu-latest
29-
steps:
30-
- name: Lint Code Base
31-
uses: docker://github/super-linter:v2.2.0
32-
composer-install:
33-
strategy:
34-
fail-fast: false
35-
matrix:
36-
php: ${{ fromJson(needs.supported-versions-matrix.outputs.version) }}
37-
composer: [lowest, current, highest]
38-
needs:
39-
- lint
40-
- supported-versions-matrix
41-
runs-on: ubuntu-latest
42-
container:
43-
image: wyrihaximusnet/php:${{ matrix.php }}-nts-buster-dev-root
44-
steps:
45-
- uses: actions/checkout@v2
46-
- name: Cache composer packages
47-
uses: actions/cache@v1
48-
with:
49-
path: ./vendor/
50-
key: ${{ matrix.composer }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
51-
- name: Install Dependencies
52-
run: composer update --prefer-lowest --no-progress --ansi --no-interaction --prefer-dist -o
53-
if: matrix.composer == 'lowest'
54-
- name: Install Dependencies
55-
run: composer install --ansi --no-progress --no-interaction --prefer-dist -o
56-
if: matrix.composer == 'current'
57-
- name: Install Dependencies
58-
run: composer update --ansi --no-progress --no-interaction --prefer-dist -o
59-
if: matrix.composer == 'highest'
60-
qa:
61-
strategy:
62-
fail-fast: false
63-
matrix:
64-
php: ${{ fromJson(needs.supported-versions-matrix.outputs.version) }}
65-
composer: [lowest, current, highest]
66-
check: ${{ fromJson(needs.generate-checks-strategy.outputs.check) }}
67-
needs:
68-
- composer-install
69-
- generate-checks-strategy
70-
- supported-versions-matrix
71-
runs-on: ubuntu-latest
72-
container:
73-
image: wyrihaximusnet/php:${{ matrix.php }}-nts-buster-dev-root
74-
steps:
75-
- uses: actions/checkout@v2
76-
- name: Cache composer packages
77-
uses: actions/cache@v2
78-
with:
79-
path: ./vendor/
80-
key: ${{ matrix.composer }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
81-
- name: Install Dependencies
82-
run: (test -f vendor && true ) || composer update --prefer-lowest --no-progress --ansi --no-interaction --prefer-dist -o
83-
if: matrix.composer == 'lowest'
84-
- name: Install Dependencies
85-
run: (test -f vendor && true ) || composer install --ansi --no-progress --no-interaction --prefer-dist -o
86-
if: matrix.composer == 'current'
87-
- name: Install Dependencies
88-
run: (test -f vendor && true ) || composer update --ansi --no-progress --no-interaction --prefer-dist -o
89-
if: matrix.composer == 'highest'
90-
- name: Fetch Tags
91-
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true
92-
if: matrix.check == 'backward-compatibility-check'
93-
- run: make ${{ matrix.check }}
94-
env:
95-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
96-
COVERALLS_RUN_LOCALLY: ${{ secrets.COVERALLS_RUN_LOCALLY }}
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 & 76 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release Management
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- labeled
7+
- unlabeled
8+
- synchronize
9+
- reopened
10+
milestone:
11+
types:
12+
- closed
13+
permissions:
14+
contents: write
15+
issues: write
16+
pull-requests: write
17+
jobs:
18+
release-managment:
19+
name: Create Release
20+
uses: WyriHaximus/github-workflows/.github/workflows/package-release-managment.yaml@main
21+
with:
22+
milestone: ${{ github.event.milestone.title }}
23+
description: ${{ github.event.milestone.title }}

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

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

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
examples/credentials.php
1+
var/*
2+
!var/.gitkeep
23
vendor/
4+
etc/qa/.phpunit.cache

0 commit comments

Comments
 (0)