Skip to content

Commit 2d15539

Browse files
authored
Merge pull request #81 from thecodingmachine/symfony-8
✨ Allow Symfony 8
2 parents dcba8e5 + d1e7cb2 commit 2d15539

File tree

5 files changed

+92
-59
lines changed

5 files changed

+92
-59
lines changed

.github/dependabot.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: '/'
5+
schedule:
6+
interval: weekly
7+
pull-request-branch-name:
8+
separator: '-'
9+
- package-ecosystem: composer
10+
directory: '/'
11+
versioning-strategy: widen
12+
schedule:
13+
interval: weekly
14+
pull-request-branch-name:
15+
separator: '-'

.github/dependabot.yml

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

.github/workflows/test.yaml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: test
2+
on:
3+
pull_request: ~
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
name: test
12+
strategy:
13+
matrix:
14+
install-args: ['']
15+
php-version: ['8.1', '8.2', '8.3', '8.4']
16+
fail-fast: false
17+
steps:
18+
# Cancel previous runs of the same branch
19+
- name: cancel
20+
uses: styfle/[email protected]
21+
with:
22+
access_token: ${{ github.token }}
23+
24+
- name: checkout
25+
uses: actions/checkout@v5
26+
27+
- name: php
28+
uses: shivammathur/[email protected]
29+
with:
30+
php-version: ${{ matrix.php-version }}
31+
ini-values: zend.assertions=1
32+
33+
- name: composer-cache-dir
34+
id: composercache
35+
run: |
36+
echo "::set-output name=dir::$(composer config cache-files-dir)"
37+
38+
- name: composer-cache
39+
uses: actions/[email protected]
40+
with:
41+
path: ${{ steps.composercache.outputs.dir }}
42+
key: composer-${{ hashFiles('**/composer.json') }}-${{ matrix.install-args }}
43+
restore-keys: |
44+
composer-${{ hashFiles('**/composer.json') }}-${{ matrix.install-args }}
45+
composer-${{ hashFiles('**/composer.json') }}-
46+
composer-
47+
48+
- name: composer
49+
run: |
50+
composer update ${{ matrix.install-args }} --no-interaction --no-progress --prefer-dist
51+
52+
- name: phpcs
53+
run: |
54+
vendor/bin/phpcs --no-cache
55+
56+
- name: phpunit
57+
run: |
58+
vendor/bin/phpunit --no-coverage
59+
60+
- name: phpstan-cache
61+
uses: actions/[email protected]
62+
with:
63+
key: phpstan-${{ matrix.php-version }}-${{ matrix.install-args }}-${{ github.ref }}-${{ github.sha }}
64+
path: .phpstan-cache
65+
restore-keys: |
66+
phpstan-${{ matrix.php-version }}-${{ matrix.install-args }}-${{ github.ref }}-
67+
phpstan-${{ matrix.php-version }}-${{ matrix.install-args }}-
68+
phpstan-${{ matrix.php-version }}-
69+
phpstan-
70+
71+
- name: phpstan
72+
run: |
73+
mkdir -p .phpstan-cache
74+
vendor/bin/phpstan analyse --no-progress --no-interaction --memory-limit=1G

.travis.yml

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

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
"require" : {
2020
"php" : ">=8.1",
2121
"thecodingmachine/graphqlite" : "^7.0 || ^8.0",
22-
"symfony/validator": "^6.4 || ^7"
22+
"symfony/validator": "^6.4 || ^7.0 || ^8.0"
2323
},
2424
"require-dev": {
25-
"phpunit/phpunit": "^11",
25+
"phpunit/phpunit": "^10",
2626
"mouf/picotainer": "^1.1",
2727
"phpstan/phpstan": "^2",
2828
"php-coveralls/php-coveralls": "^2.1.0",
29-
"symfony/translation": "^7",
29+
"symfony/translation": "^6.4 || ^7.0 || ^8.0",
3030
"doctrine/coding-standard": "^12"
3131
},
3232
"scripts": {

0 commit comments

Comments
 (0)