Skip to content

Commit e4cc062

Browse files
Merge pull request #51 from matthiasnoback/upgrade
Upgrade
2 parents 8e4d48c + 618e5bf commit e4cc062

33 files changed

+141
-149
lines changed

.gitattributes

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.github/ export-ignore
2+
bin/ export-ignore
3+
doc/ export-ignore
4+
features/ export-ignore
5+
test/ export-ignore
6+
.gitattributes export-ignore
7+
.gitignore export-ignore
8+
CONTRIBUTING.md export-ignore
9+
docker-compose.yml export-ignore
10+
ecs.php export-ignore

.github/workflows/code-style.yaml

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

.github/workflows/tests.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ jobs:
1515
-
1616
name: "Behat"
1717
run: vendor/bin/behat
18-
php-versions: ['7.4', '8.0']
19-
18+
-
19+
name: "Code style"
20+
run: vendor/bin/ecs check --ansi
21+
dependencies: ["lowest", "highest"]
2022
name: ${{ matrix.actions.name }}
2123
runs-on: ubuntu-latest
2224

@@ -26,10 +28,12 @@ jobs:
2628
# see https://github.com/shivammathur/setup-php
2729
- uses: shivammathur/setup-php@v2
2830
with:
29-
php-version: ${{ matrix.php-versions }}
31+
php-version: 8.0
3032
coverage: none
3133

3234
# composer install cache - https://github.com/ramsey/composer-install
3335
- uses: "ramsey/composer-install@v1"
36+
with:
37+
dependency-versions: "${{ matrix.dependencies }}"
3438

3539
- run: ${{ matrix.actions.run }}

.php_cs

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

CONTRIBUTING.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
If you want to contribute to this library, clone this project, then:
22

3-
- Run `composer install` to install dependencies.
4-
- Run `./install-git-hooks.sh` to install the pre-commit hook which fixes coding style problems automatically for you.
5-
6-
Take a look at `.travis.yml` to find out which versions of Symfony are currently supported by this library. The easiest way to find out if your code changes are compatible with different versions of Symfony is to register your cloned repository at Travis. Then push your code to GitHub and wait for the Travis build to finish. If the build fails for a particular Symfony version you can reproduce the build locally by exporting the same environment variables as Travis does and running the install and test scripts on your machine.
3+
- Run `bin/install` to download relevant Docker images and install Composer dependencies.
4+
- Run `bin/fix-cs` to fix code style issues
5+
- Run `bin/test` to run the tests

bin/fix-cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
set -eu
4+
5+
docker-compose run --rm php php vendor/bin/ecs check --fix

bin/install

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
3+
set -eu
4+
5+
echo "Creating .env file"
6+
printf "HOST_UID=%s\nHOST_GID=%s\n" "$(id -u)" "$(id -g)" > .env
7+
8+
echo "Pulling Docker images"
9+
docker-compose pull
10+
11+
echo "Installing Composer dependencies"
12+
docker-compose run --rm composer install --ignore-platform-reqs --prefer-dist
13+
14+
echo ""
15+
echo "Done"
16+
echo ""

bin/php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,4 @@
22

33
set -eu
44

5-
# Copy user and group ID into .env file
6-
printf "HOST_UID=%s\nHOST_GID=%s\n" "$(id -u)" "$(id -g)" > .env
7-
85
docker-compose run --rm php php "$@"

bin/test

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
set -eu
4+
5+
docker-compose run --rm php php vendor/bin/behat

composer.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,21 @@
2323
}
2424
},
2525
"require": {
26-
"php": ">=7.4",
27-
"symfony/form": "~5.0",
28-
"symfony/console": "~5.0",
29-
"symfony/translation": "~5.0"
26+
"php": ">=8.0",
27+
"symfony/form": "~5.0 || ~6.0",
28+
"symfony/console": "~5.0 || ~6.0",
29+
"symfony/translation": "~5.0 || ~6.0"
3030
},
3131
"require-dev": {
3232
"beberlei/assert": "~2.1",
3333
"behat/behat": "^3.6",
34-
"friendsofphp/php-cs-fixer": "^2.2",
35-
"symfony/finder": "~5.0",
36-
"symfony/framework-bundle": "~5.0",
37-
"symfony/validator": "~5.0",
38-
"symfony/yaml": "~5.0",
39-
"symfony/security-csrf": "~5.0",
40-
"phpunit/phpunit": "^9.5"
34+
"symfony/finder": "~5 || ~6.0.0",
35+
"symfony/framework-bundle": "~5.0 || ~6.0",
36+
"symfony/validator": "~5.0 || ~6.0",
37+
"symfony/yaml": "~5.0 || ~6.0",
38+
"symfony/security-csrf": "~5.0 || ~6.0",
39+
"phpunit/phpunit": "^9.5",
40+
"symplify/easy-coding-standard": "^9.4",
41+
"symplify/coding-standard": "^9.4"
4142
}
4243
}

0 commit comments

Comments
 (0)