Skip to content

Commit

Permalink
Merge pull request #51 from localgovdrupal/4.x
Browse files Browse the repository at this point in the history
4.0.0-beta1 release
  • Loading branch information
finnlewis committed May 7, 2024
2 parents 5d7cd87 + 9f3d28a commit ef86f36
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .ddev/config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: localgov-microsites
type: drupal10
docroot: web
php_version: "8.1"
php_version: "8.2"
webserver_type: nginx-fpm
router_http_port: "80"
router_https_port: "443"
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/localgov_microsites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ name: Test LocalGov Microsites localgovdrupal/localgov_microsites_project projec
on:
push:
branches:
- '3.x'
- '4.x'
pull_request:
branches:
- '3.x'
- '4.x'
workflow_dispatch:

env:
LOCALGOV_DRUPAL_PROJECT: localgovdrupal/localgov_microsites_project
Expand All @@ -25,7 +26,7 @@ jobs:
fail-fast: false
matrix:
localgov-version:
- '3.x'
- '4.x'
drupal-version:
- '~10.0'
php-version:
Expand Down Expand Up @@ -89,7 +90,7 @@ jobs:
fail-fast: false
matrix:
localgov-version:
- '3.x'
- '4.x'
drupal-version:
- '~10.0'
php-version:
Expand Down Expand Up @@ -125,7 +126,7 @@ jobs:
fail-fast: false
matrix:
localgov-version:
- '3.x'
- '4.x'
drupal-version:
- '~10.0'
php-version:
Expand Down Expand Up @@ -160,7 +161,7 @@ jobs:
fail-fast: false
matrix:
localgov-version:
- '3.x'
- '4.x'
drupal-version:
- '~10.0'
php-version:
Expand Down
5 changes: 4 additions & 1 deletion .lando.dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: localgov-micro
recipe: drupal10
config:
webroot: web
php: '8.1'
php: '8.2'
proxy:
mailhog:
- mail.localgov-micro.lndo.site
Expand Down Expand Up @@ -75,6 +75,9 @@ services:
- '4444'
command: ["/usr/local/bin/supervisord", "-c", "/etc/supervisord.conf"]
tooling:
composer:
service: appserver
cmd: /usr/local/bin/composer
deprecated:
service: appserver
cmd: 'bash -c "/app/bin/phpstan analyse -c /app/phpstan.neon /app/web/profiles/contrib/localgov_*/ /app/web/modules/contrib/localgov_*/ /app/web/themes/contrib/localgov_*"'
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ First you need to [install Composer](https://getcomposer.org/doc/00-intro.md#ins
After that you can create the project:

```shell
composer create-project --stability beta localgovdrupal/localgov_microsites_project MY_PROJECT --no-install
composer create-project --stability alpha localgovdrupal/localgov_microsites_project MY_PROJECT --no-install
```

## Using Lando
Expand All @@ -33,7 +33,7 @@ composer install
drush si localgov_microsites
```

## Runnint PHPUnit tests in Lando
## Running PHPUnit tests in Lando

The included phpunit.xml.dist file contains configuration for automatically
running the LocalGov Drupal test suite.
Expand Down
20 changes: 12 additions & 8 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
parameters:
customRulesetUsed: true
reportUnmatchedIgnoredErrors: false
# Ignore phpstan-drupal extension's rules.
ignoreErrors:
- '#\Drupal calls should be avoided in classes, use dependency injection instead#'
- '#Plugin definitions cannot be altered.#'
- '#Missing cache backend declaration for performance.#'
- '#Plugin manager has cache backend specified but does not declare cache tags.#'
# we don't set a level so that we check deprecations only, and
# not to highlight unknown classes which are from composer suggestions.
customRulesetUsed: true
reportUnmatchedIgnoredErrors: false
# Ignore phpstan-drupal extension's rules.
ignoreErrors:
- '#\Drupal calls should be avoided in classes, use dependency injection instead#'
- '#Plugin definitions cannot be altered.#'
- '#Missing cache backend declaration for performance.#'
- '#Plugin manager has cache backend specified but does not declare cache tags.#'
# new static() is a best practice in Drupal, so we cannot fix that.
- '#^Unsafe usage of new static#'

0 comments on commit ef86f36

Please sign in to comment.