Skip to content

Commit d838860

Browse files
Steevan BARBOYONsteevanb
authored andcommitted
Update dependencies and CI
1 parent bedf5b5 commit d838860

30 files changed

Lines changed: 182 additions & 208 deletions

.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
insert_final_newline = true

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/.editorconfig export-ignore
12
/.github export-ignore
23
/.gitattributes export-ignore
34
/.gitignore export-ignore

.github/actions/ci-env/action.yml

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

.github/workflows/ci.yml

Lines changed: 15 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,18 @@
11
name: CI
22
on: [push]
33
jobs:
4-
phpcs:
5-
runs-on: ubuntu-latest
6-
steps:
7-
- uses: actions/checkout@v2
8-
- run: bin/ci/phpcs
9-
10-
phpstan:
11-
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
php: [--php=8.1, --php=8.2, --php=8.3]
15-
steps:
16-
- uses: actions/checkout@v2
17-
- uses: ./.github/actions/ci-env
18-
- run: bin/ci/phpstan ${{ matrix.php }}
19-
20-
phpdd:
21-
runs-on: ubuntu-latest
22-
steps:
23-
- uses: actions/checkout@v2
24-
- uses: ./.github/actions/ci-env
25-
- run: bin/ci/phpdd
26-
27-
composer-require-checker:
28-
runs-on: ubuntu-latest
29-
steps:
30-
- uses: actions/checkout@v2
31-
- uses: ./.github/actions/ci-env
32-
- run: bin/ci/composer-require-checker
33-
34-
composer-validate:
35-
runs-on: ubuntu-latest
36-
steps:
37-
- uses: actions/checkout@v2
38-
- run: bin/ci/composer-validate
39-
40-
shellcheck:
41-
runs-on: ubuntu-latest
42-
steps:
43-
- uses: actions/checkout@v2
44-
- run: bin/ci/shellcheck
45-
46-
unused-scanner:
47-
runs-on: ubuntu-latest
48-
steps:
49-
- uses: actions/checkout@v2
50-
- run: bin/ci/unused-scanner
51-
52-
phpunit-symfony-6:
53-
runs-on: ubuntu-latest
54-
strategy:
55-
matrix:
56-
php: [--php=8.1, --php=8.2, --php=8.3]
57-
symfony: [--symfony=6.1, --symfony=6.2, --symfony=6.3, --symfony=6.4]
58-
steps:
59-
- uses: actions/checkout@v2
60-
- uses: ./.github/actions/ci-env
61-
- run: bin/ci/phpunit ${{ matrix.php }} ${{ matrix.symfony }}
62-
63-
phpunit-symfony-7:
64-
runs-on: ubuntu-latest
65-
strategy:
66-
matrix:
67-
php: [--php=8.2, --php=8.3]
68-
symfony: [--symfony=7.0, --symfony=7.1]
69-
steps:
70-
- uses: actions/checkout@v2
71-
- uses: ./.github/actions/ci-env
72-
- run: bin/ci/phpunit ${{ matrix.php }} ${{ matrix.symfony }}
4+
validate:
5+
runs-on: ubuntu-latest
6+
steps:
7+
-
8+
name: Checkout repository
9+
uses: actions/checkout@v4
10+
-
11+
name: Composer cache
12+
uses: actions/cache@v3
13+
with:
14+
path: vendor
15+
key: composer-${{ hashFiles('composer.json') }}
16+
restore-keys: composer-${{ hashFiles('composer.json') }}
17+
- run: bin/ci/env
18+
- run: bin/ci/validate --theme=summary

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ jobs:
1212
name: Release
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
-
16+
name: Checkout repository
17+
uses: actions/checkout@v4
1618
-
1719
name: Composer cache
18-
uses: actions/cache@v2
20+
uses: actions/cache@v3
1921
with:
2022
path: vendor
2123
key: composer-${{ hashFiles('composer.json') }}

bin/ci/docker

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ readonly ROOT_PATH="$(realpath "$(dirname "$(realpath "$0")")/../..")"
66
source "${ROOT_PATH}"/bin/common.inc.sh
77

88
DOCKER_IMAGE_NAME="${CI_DOCKER_IMAGE_NAME}" \
9-
DOCKER_FILE_PATH="${ROOT_PATH}"/docker/ci/Dockerfile \
9+
DOCKERFILE_PATH="${ROOT_PATH}"/docker/ci \
1010
source "${ROOT_PATH}"/bin/docker-build.inc.bash

bin/ci/env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ readonly ROOT_PATH="$(realpath "$(dirname "$(realpath "$0")")/../..")"
66
. "${ROOT_PATH}"/bin/common.inc.sh
77
. "${ROOT_PATH}"/bin/dockerise.inc.bash
88

9-
"${ROOT_PATH}"/bin/composer install
9+
"${ROOT_PATH}"/bin/composer install --ansi

bin/ci/phpcs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,4 @@ if [ ! -d "${ROOT_PATH}"/var/ci/phpcs ]; then
1010
mkdir -p "${ROOT_PATH}"/var/ci/phpcs
1111
fi
1212

13-
phpcs \
14-
-p \
15-
--warning-severity=0 \
16-
--ignore=/vendor/,/var/,*Enum.php \
17-
--bootstrap=config/ci/phpcs.php \
18-
--standard="${COMPOSER_HOME}"/vendor/steevanb/php-code-sniffs/src/Steevanb/ruleset.xml \
19-
--report=steevanb\\PhpCodeSniffs\\Reports\\Steevanb \
20-
--cache="${ROOT_PATH}"/var/ci/phpcs/cache \
21-
. \
22-
"${@}"
13+
phpcs --standard="${ROOT_PATH}"/config/ci/phpcs.xml "${@}"

bin/ci/phpstan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
function createPhpstanProcesses(): ProcessInterfaceCollection
1616
{
17-
$phpVersions = new StringCollection(['8.1', '8.2', '8.3']);
17+
$phpVersions = new StringCollection(['8.1', '8.2', '8.3', '8.4']);
1818

1919
$return = new ProcessInterfaceCollection();
2020
foreach ($phpVersions->toArray() as $loopPhpVersion) {

bin/ci/phpunit.inc.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010

1111
function createPhpunitProcesses(string $phpVersion = null, string $symfonyVersion = null): ProcessInterfaceCollection
1212
{
13-
$phpVersions = new StringCollection(is_string($phpVersion) ? [$phpVersion] : ['8.1', '8.2', '8.3']);
13+
$phpVersions = new StringCollection(is_string($phpVersion) ? [$phpVersion] : ['8.1', '8.2', '8.3', '8.4']);
1414
$symfonyVersions = new StringCollection(
15-
is_string($symfonyVersion) ? [$symfonyVersion] : ['6.1', '6.2', '6.3', '6.4', '7.0', '7.1']
15+
is_string($symfonyVersion) ? [$symfonyVersion] : ['6.1', '6.2', '6.3', '6.4', '7.0', '7.1', '7.2']
1616
);
1717

1818
$return = new ProcessInterfaceCollection();
1919
foreach ($phpVersions->toArray() as $loopPhpVersion) {
2020
foreach ($symfonyVersions->toArray() as $loopSymfonyVersion) {
2121
if (
22-
in_array($loopSymfonyVersion, ['7.0', '7.1'])
23-
&& in_array($loopPhpVersion, ['8.2', '8.3'], true) === false
22+
in_array($loopSymfonyVersion, ['7.0', '7.1', '7.2'])
23+
&& in_array($loopPhpVersion, ['8.2', '8.3', '8.4'], true) === false
2424
) {
2525
continue;
2626
}

0 commit comments

Comments
 (0)