Skip to content

Commit cb4e91d

Browse files
committed
feature #946 bump to php >=8.1 everywhere (bendavies)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- bump to php >=8.1 everywhere | Q | A | ------------- | --- | Bug fix? |no | New feature? |no | Tickets | | License | The versions of php were a bit disparate. they should be the same everywhere. workflows for for 7.2 and 8.0 removed. testing for php 8.2 should probably be added Commits ------- 5bdab23 bump to php >=8.1 everywhere
2 parents c669f92 + 5bdab23 commit cb4e91d

37 files changed

+153
-635
lines changed

.github/workflows/test-turbo.yml

Lines changed: 10 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ jobs:
2929
working-directory: src/Turbo
3030
run: vendor/bin/phpstan analyse --no-progress
3131

32-
tests-php-high-deps:
32+
tests:
3333
runs-on: ubuntu-latest
3434
strategy:
35-
matrix:
36-
php-versions: ['8.1']
37-
fail-fast: false
38-
name: PHP ${{ matrix.php-versions }} Test on ubuntu-latest
35+
fail-fast: false
36+
matrix:
37+
php-version: ['8.1']
38+
dependency-version: ['lowest', 'highest']
3939

4040
services:
4141
mercure:
@@ -57,74 +57,13 @@ jobs:
5757
- name: Setup PHP
5858
uses: shivammathur/setup-php@v2
5959
with:
60-
php-version: ${{ matrix.php-versions }}
61-
extensions: zip, pdo_sqlite
60+
php-version: ${{ matrix.php-version }}
6261

63-
- uses: ramsey/composer-install@v2
64-
with:
65-
working-directory: src/Turbo
66-
67-
- name: Get yarn cache directory path
68-
id: yarn-cache-dir-path
69-
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
70-
71-
- uses: actions/cache@v2
72-
id: yarn-cache
73-
with:
74-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
75-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}
76-
restore-keys: |
77-
${{ runner.os }}-yarn-
78-
79-
- name: Install JavaScript dependencies
80-
working-directory: src/Turbo/tests/app
81-
run: yarn install
82-
83-
- name: Build JavaScript
84-
working-directory: src/Turbo/tests/app
85-
run: yarn build
86-
87-
- name: Create DB
88-
working-directory: src/Turbo/tests/app
89-
run: php public/index.php doctrine:schema:create
90-
91-
- name: Run tests
92-
working-directory: src/Turbo
93-
env:
94-
SYMFONY_DEPRECATIONS_HELPER: max[direct]=0
95-
run: vendor/bin/simple-phpunit
96-
97-
tests-php-low-deps:
98-
runs-on: ubuntu-latest
99-
name: PHP 8.1 (lowest) Test on ubuntu-latest
100-
101-
services:
102-
mercure:
103-
image: dunglas/mercure
104-
env:
105-
SERVER_NAME: :3000
106-
MERCURE_PUBLISHER_JWT_KEY: '!ChangeMe!'
107-
MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeMe!'
108-
MERCURE_EXTRA_DIRECTIVES: |
109-
anonymous
110-
cors_origins *
111-
ports:
112-
- 3000:3000
113-
114-
steps:
115-
- name: Checkout
116-
uses: actions/checkout@v2
117-
118-
- name: Setup PHP
119-
uses: shivammathur/setup-php@v2
62+
- name: Install Turbo packages
63+
uses: ramsey/composer-install@v2
12064
with:
121-
php-version: '8.1'
122-
extensions: zip, pdo_sqlite
123-
124-
- uses: ramsey/composer-install@v2
125-
with:
126-
working-directory: src/Turbo
127-
dependency-versions: lowest
65+
working-directory: src/Turbo
66+
dependency-versions: ${{ matrix.dependency-version }}
12867

12968
- name: Get yarn cache directory path
13069
id: yarn-cache-dir-path
@@ -152,6 +91,4 @@ jobs:
15291

15392
- name: Run tests
15493
working-directory: src/Turbo
155-
env:
156-
SYMFONY_DEPRECATIONS_HELPER: max[total]=9223372036854775807 # PHP_INT_MAX
15794
run: vendor/bin/simple-phpunit

0 commit comments

Comments
 (0)