Skip to content

Commit

Permalink
Merge pull request #710 from City-of-Helsinki/UHF-10248
Browse files Browse the repository at this point in the history
UHF-10248: Run tests against automatic updates
  • Loading branch information
rpnykanen authored Oct 22, 2024
2 parents 064b26e + 0714ec1 commit 9e617e9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ jobs:

- name: Run PHPCS
run: |
vendor/bin/phpcs public/modules/custom/ --ignore="*.js,*.css" --extensions=php,module,install --standard=Drupal,DrupalPractice
vendor/bin/phpcs public/themes/custom/ --ignore="*.js,*.css" --extensions=php,theme --standard=Drupal,DrupalPractice
vendor/bin/phpcs public/modules/custom/
vendor/bin/phpcs public/themes/custom/
- name: Run phpstan
run: vendor/bin/phpstan analyze
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/update-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Check if required secrets are set
env:
AUTOMATIC_UPDATE_TOKEN: ${{ secrets.AUTOMATIC_UPDATE_TOKEN }}
if: env.AUTOMATIC_UPDATE_TOKEN == ''
run: exit 1

- name: Download latest dump
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -77,6 +83,7 @@ jobs:
uses: peter-evans/create-pull-request@v6
with:
commit-message: Update configuration
token: ${{ secrets.AUTOMATIC_UPDATE_TOKEN }}
title: Automatic update
labels: auto-update
body: |
Expand Down
2 changes: 2 additions & 0 deletions public/modules/custom/helfi_group/helfi_group.tokens.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Builds extra placeholder replacement tokens for groups.
*/

declare(strict_types=1);

use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Render\BubbleableMetadata;
use Drupal\helfi_group\GroupUtility;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Contains alterations for content.
*/

declare(strict_types=1);

use Drupal\Core\Access\AccessResult;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\EntityInterface;
Expand Down

0 comments on commit 9e617e9

Please sign in to comment.