Skip to content

Commit 9a6569b

Browse files
authored
Merge branch 'main' into preview-enabled
2 parents c8f3000 + c1a9054 commit 9a6569b

File tree

162 files changed

+6949
-5688
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+6949
-5688
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ node_modules
55
*.esm.js
66
/drupal
77
/drupal-*
8+
/local-next-drupal

.github/workflows/next.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
phpunit:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-24.04
1313
strategy:
1414
matrix:
1515
# Supported PHP versions: https://www.drupal.org/docs/getting-started/system-requirements/php-requirements
@@ -22,15 +22,21 @@ jobs:
2222
- "10.0.x"
2323
- "10.1.x"
2424
- "10.2.x"
25+
- "10.3.x"
26+
- "11.0.x"
2527
exclude:
2628
- drupal: "10.0.x"
2729
php: "8.3"
2830
- drupal: "10.1.x"
2931
php: "8.3"
32+
- drupal: "11.0.x"
33+
php: "8.1"
34+
- drupal: "11.0.x"
35+
php: "8.2"
3036
name: Drupal ${{ matrix.drupal }} - PHP ${{ matrix.php }}
3137
services:
3238
mysql:
33-
image: mysql:5.7
39+
image: mysql:8.0
3440
env:
3541
MYSQL_ALLOW_EMPTY_PASSWORD: yes
3642
MYSQL_DATABASE: db

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ yarn-error.log*
4242
/drupal/web/phpunit.xml
4343
/drupal/web/sites/default/settings.local.php
4444
/drupal-*
45+
/local-next-drupal

CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ yarn workspace next-drupal dev
5050

5151
You can run all the tests from the root of the repository.
5252

53+
Due to the current CI/CD setup it is not possible to run the tests locally.
54+
A running Drupal instance with a secret configuration is required to run the tests.
55+
56+
To add the required env vars to Jest run:
57+
58+
```
59+
cp packages/next-drupal/.env.example packages/next-drupal/.env
60+
```
61+
5362
### `next-drupal`
5463

5564
We use `jest` for testing the `next-drupal` package.

modules/next/.gitlab-ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@ include:
5252
#
5353
# Docs at https://git.drupalcode.org/project/gitlab_templates/-/blob/1.0.x/includes/include.drupalci.variables.yml
5454
################
55-
# variables:
56-
# SKIP_ESLINT: '1'
57-
55+
variables:
56+
# SKIP_ESLINT: '1'
57+
OPT_IN_TEST_PREVIOUS_MINOR: 1
58+
OPT_IN_TEST_NEXT_MINOR: 1
59+
OPT_IN_TEST_NEXT_MAJOR: 1
5860
###################################################################################
5961
#
6062
# *

modules/next/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
"drupal/subrequests": "^3.0"
1818
},
1919
"require-dev": {
20-
"phpunit/phpunit": "^6.0 || ^7.0 || ^8.0 || ^9.0"
20+
"phpunit/phpunit": "^9 || ^10"
2121
}
2222
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Next.js Extras (Experimental)
22
description: Adds extra (mostly experiemental) functionality to Next.js module
33
type: module
4-
core_version_requirement: ^9 || ^10
4+
core_version_requirement: ^10 || ^11
55
package: Web services
66
dependencies:
77
- next:next

modules/next/modules/next_extras/src/NextCacheInvalidator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ public function invalidatePath(string $path, array $sites): void {
143143
}
144144
}
145145
catch (RequestException $exception) {
146-
watchdog_exception('next_extras', $exception);
146+
// Using logger service to log the exception.
147+
$this->logger->error($exception->getMessage());
147148
}
148149
}
149150
}

modules/next/modules/next_graphql/next_graphql.info.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 'Next.js GraphQL'
22
type: module
33
description: 'GraphQL for Next.js'
4-
core_version_requirement: ^9 || ^10
4+
core_version_requirement: ^10 || ^11
55
package: Web services
66
dependencies:
77
- graphql:graphql

modules/next/modules/next_jsonapi/next_jsonapi.info.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 'Next.js JSON:API'
22
type: module
33
description: 'JSON:API Helpers for Next.js'
4-
core_version_requirement: ^9 || ^10
4+
core_version_requirement: ^10 || ^11
55
package: Web services
66
dependencies:
77
- decoupled_router:decoupled_router

0 commit comments

Comments
 (0)