Skip to content

Commit

Permalink
Merge pull request #84 from City-of-Helsinki/dev
Browse files Browse the repository at this point in the history
Release 27.10.2022
  • Loading branch information
khalima authored Oct 26, 2022
2 parents 4b2904d + 7b4c5c1 commit 7d8c99d
Show file tree
Hide file tree
Showing 8 changed files with 114 additions and 131 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,23 @@ jobs:
- name: Build project
run: composer install

- name: Check that subtheme is not built with dev mode
run: if grep -q 'sourceMappingURL=' -R public/themes/custom/hdbt_subtheme/dist/css; then exit 1; fi

- name: Run PHPCS
run: |
vendor/bin/phpcs public/modules/custom/ --ignore="*.js,*.css" --extensions=php,module,install --standard=Drupal
vendor/bin/phpcs public/themes/custom/ --ignore="*.js,*.css" --extensions=php,theme --standard=Drupal
- name: Download latest dump
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh run download -n latest.sql
run: gh run download -n latest.sql

- name: Install Drupal
run: mysql --user=drupal --password=drupal --database=drupal --host=db --port=3306 -A < latest.sql
run: |
mysql --user=drupal --password=drupal --database=drupal --host=db --port=3306 -A < latest.sql
drush cr && drush cim -y
- name: Start services
run: |
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/update-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ jobs:
$(drush sql:connect) < latest.sql
drush cr && drush cim -y
composer update drupal/helfi_* drupal/hdbt* -W
drush cr
drush updb -y
drush cex -y
drush cr && drush updb -y && drush cex -y
# Update platform
drush helfi:tools:update-platform
Expand Down
Loading

0 comments on commit 7d8c99d

Please sign in to comment.