Skip to content

Commit

Permalink
Merge pull request #178 from localgovdrupal/3.x
Browse files Browse the repository at this point in the history
3.1.2 release
  • Loading branch information
finnlewis authored Oct 8, 2024
2 parents 85dbd33 + a487745 commit b4326e5
Show file tree
Hide file tree
Showing 5 changed files with 348 additions and 17 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ on:
branches:
- '3.x'
schedule:
- cron: "0 7 * * *"
- cron: '0 7 * * *'
workflow_dispatch:

env:
LOCALGOV_DRUPAL_PROJECT: localgovdrupal/localgov-project
LOCALGOV_DRUPAL_PROJECT_PATH:

jobs:

build:
name: Install LocalGov Drupal
runs-on: ubuntu-latest
Expand All @@ -39,7 +38,6 @@ jobs:
- '8.3'

steps:

- name: Save git branch and git repo names to env if this is not a pull request
if: github.event_name != 'pull_request'
run: |
Expand Down Expand Up @@ -98,12 +96,9 @@ jobs:
drupal-version:
- '~10.0'
php-version:
- '8.1'
- '8.2'
- '8.3'

steps:

- name: Cached workspace
uses: actions/cache@v2
with:
Expand All @@ -123,7 +118,7 @@ jobs:
./bin/phpcs -p ${LOCALGOV_DRUPAL_PROJECT_PATH}
phpstan:
name: Deprecated code checks
name: Static analysis checks
needs: build
runs-on: ubuntu-latest

Expand All @@ -135,12 +130,9 @@ jobs:
drupal-version:
- '~10.0'
php-version:
- '8.1'
- '8.2'
- '8.3'

steps:

- name: Cached workspace
uses: actions/cache@v2
with:
Expand All @@ -154,7 +146,7 @@ jobs:
with:
php-version: ${{ matrix.php-version }}

- name: Run deprecated code checks
- name: Run PHPStan code checks
run: |
cd html
./bin/phpstan analyse -c ./phpstan.neon ./web/modules/contrib/localgov* ./web/profiles/contrib/localgov* ./web/themes/contrib/localgov*
Expand All @@ -176,7 +168,6 @@ jobs:
- '8.3'

steps:

- name: Clone Drupal container
uses: actions/checkout@v2
with:
Expand All @@ -192,7 +183,7 @@ jobs:
localgov-build-${{ matrix.localgov-version }}-${{ matrix.drupal-version }}-${{ matrix.php-version }}-
- name: Start Docker environment
run: docker-compose -f docker-compose.yml up -d
run: docker compose -f docker-compose.yml up -d

- name: Run PHPUnit tests
run: |
Expand Down
3 changes: 2 additions & 1 deletion .lando.dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ recipe: drupal10
config:
webroot: web
php: '8.1'
database: mariadb:10.6
proxy:
mailhog:
- mail.localgov.lndo.site
Expand Down Expand Up @@ -75,7 +76,7 @@ tooling:
composer:
service: appserver
cmd: /usr/local/bin/composer
deprecated:
sca:
service: appserver
cmd: 'bash -c "/app/vendor/bin/phpstan analyse -c /app/phpstan.neon /app/web/profiles/contrib/localgov* /app/web/modules/contrib/localgov* /app/web/themes/contrib/localgov*"'
drush:
Expand Down
9 changes: 8 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
"phpspec/prophecy-phpunit": "^2",
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-strict-rules": "^1.5",
"spaze/phpstan-disallowed-calls": "^3.4",
"squizlabs/php_codesniffer": "^3.6"
},
"conflict": {
Expand Down Expand Up @@ -69,11 +71,16 @@
}
},
"patches-ignore": {
"localgovdrupal/localgov": {
"drupal/core": {
"Content moderation and Workspaces https://www.drupal.org/project/drupal/issues/3179199#comment-15711680" : "https://www.drupal.org/files/issues/2024-08-11/3179199-3132022-content-moderation-workspaces-query.patch"
}
},
"localgovdrupal/localgov_services": {
"drupal/core": {
"node_access filters out accessible nodes when node is left joined (1349080)" : "https://git.drupalcode.org/project/drupal/-/commit/c271adb.diff"
}
}
}
},
"installer-paths": {
"web/core": ["type:drupal-core"],
Expand Down
Loading

0 comments on commit b4326e5

Please sign in to comment.