Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev to main #432

Merged
merged 36 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
b63c4f2
UHF-9755 Updated configuration based on updates from helfi platform c…
khalima Mar 15, 2024
3976201
Removed helfi_rekry_config as it was not necessary to install the mod…
khalima Mar 15, 2024
aca0baf
Update core.extension.yml
khalima Mar 15, 2024
4cf6208
Update configuration
hel-platta-automation Mar 18, 2024
04daf70
Merge pull request #430 from City-of-Helsinki/update-configuration
teroelonen Mar 18, 2024
0fa3747
Update configuration
khalima Mar 20, 2024
0dcd0d3
Merge pull request #433 from City-of-Helsinki/update-configuration
khalima Mar 20, 2024
5565e9b
Merge branch 'dev' into UHF-9755
khalima Mar 20, 2024
0c6d038
Updated actions to v4, scan langcode of exported configuration
tuutti Mar 20, 2024
02f97c9
Fixed langcodes
tuutti Mar 20, 2024
b6834c8
Merge pull request #434 from City-of-Helsinki/UHF-X-scan-langcode
tuutti Mar 20, 2024
20d9e93
UHF-9858: Make sure artifact fails with proper exit code, updated act…
tuutti Mar 21, 2024
cc0e863
Merge pull request #436 from City-of-Helsinki/UHF-9858
khalima Mar 21, 2024
cfee0f9
Merge pull request #431 from City-of-Helsinki/UHF-9755
khalima Mar 21, 2024
a0b01fc
Update configuration
hel-platta-automation Mar 22, 2024
45d4eba
Merge pull request #435 from City-of-Helsinki/update-configuration
teroelonen Mar 22, 2024
779384a
Updated install.mk and update-config workflow with the translation wo…
khalima Mar 25, 2024
eb48d15
Merge pull request #437 from City-of-Helsinki/UHF-9088_workflows
rpnykanen Mar 25, 2024
9b123e3
Update configuration
khalima Mar 25, 2024
78e8e91
Update field.field.paragraph.contact_card.field_email.yml
khalima Mar 25, 2024
2548647
Update field.field.paragraph.contact_card.field_email.yml
khalima Mar 25, 2024
87aaf3a
Update social_media.settings.yml
khalima Mar 25, 2024
7b6457b
Update field.field.paragraph.contact_card.field_email.yml
khalima Mar 25, 2024
a197f96
Merge pull request #438 from City-of-Helsinki/update-configuration
khalima Mar 25, 2024
1257601
Update configuration
hel-platta-automation Mar 26, 2024
1a48802
Update field.field.paragraph.contact_card.field_email.yml
khalima Mar 26, 2024
2e2fe78
Update field.field.paragraph.contact_card.field_email.yml
khalima Mar 26, 2024
a241446
Update social_media.settings.yml
khalima Mar 26, 2024
4fb3e65
Update social_media.settings.yml
khalima Mar 26, 2024
cd5fa74
Merge pull request #439 from City-of-Helsinki/update-configuration
khalima Mar 26, 2024
a2c09af
Enable keyword migration
hyrsky Mar 27, 2024
619f5fd
Merge pull request #440 from City-of-Helsinki/UHF-X-enable-keywords-m…
hyrsky Mar 27, 2024
ce57294
Update configuration
hel-platta-automation Mar 27, 2024
c37bd41
Update field.field.paragraph.contact_card.field_email.yml
khalima Mar 27, 2024
31ae087
Update field.field.paragraph.contact_card.field_email.yml
khalima Mar 27, 2024
c5c54ef
Merge pull request #441 from City-of-Helsinki/update-configuration
khalima Mar 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ jobs:
- 3306:3306

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/checkout@v4

- name: Build project
run: composer install --no-interaction

- name: Setup drupal and save database dump
run: |
drush si -y && drush cr && drush si --existing-config -y && drush cim -y
drush si -y && drush cr
drush si --existing-config -y
drush cim -y
drush sql-dump --result-file=${GITHUB_WORKSPACE}/latest.sql

- name: Upload latest database dump
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: latest.sql
path: latest.sql
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,17 @@ jobs:
- 3306:3306

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/checkout@v4

- name: Make sure configuration was exported in correct language (en or und)
run: |
OUTPUT=$(grep -oP '^langcode: \b(?!(?:en|und)\b)\w+' conf -R || true)

if [ ! -z "$OUTPUT" ]; then
echo "Found configuration that does not match the pattern 'langcode: (en|und)':" >> $GITHUB_STEP_SUMMARY
echo "$OUTPUT" >> $GITHUB_STEP_SUMMARY
exit 1
fi

- name: Build project
run: composer install --no-interaction
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/update-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Download latest dump
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -36,7 +37,19 @@ jobs:
$(drush sql:connect) < latest.sql
drush cim -y && drush updb -y && drush cr
composer update drupal/helfi_* drupal/hdbt* -W --no-interaction
drush cr && drush updb -y && drush cex -y
drush cr

# Update translations from localize.drupal.org and helfi-modules
# before running update hooks to reduce clutter in configuration files.
drush locale:check && drush locale:update
drush updb -y

# Update translations from helfi_platform_config. These translations
# consists of overrides for non customised translations and will
# override current translation with a non customised translation.
drush helfi:locale-import helfi_platform_config
drush cex -y

# Update platform
drush helfi:tools:update-platform

Expand Down
2 changes: 1 addition & 1 deletion .platform/schema
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5
6
3 changes: 1 addition & 2 deletions docker-compose.yml → compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
STAGE_FILE_PROXY_ORIGIN_DIR: "${STAGE_FILE_PROXY_ORIGIN_DIR}"
APP_ENV: "${APP_ENV:-local}"
ELASTIC_PROXY_URL: ${ELASTIC_PROXY_URL:-""}
DRUPAL_ROUTES: "https://varnish-${DRUPAL_HOSTNAME},https://helfi-proxy.docker.so,http://${COMPOSE_PROJECT_NAME}-varnish"
DRUPAL_ROUTES: "https://varnish-${DRUPAL_HOSTNAME},https://helfi-proxy.docker.so,http://${COMPOSE_PROJECT_NAME}-varnish,http://${COMPOSE_PROJECT_NAME}"
DRUPAL_REVERSE_PROXY_ADDRESS: helfi-proxy.docker.so
DRUSH_OPTIONS_URI: "https://${DRUPAL_HOSTNAME}"
# To enable xdebug, run `export XDEBUG_ENABLE=true` before (re)starting your project.
Expand All @@ -27,7 +27,6 @@ services:
# Use drush server to run functional tests, so we don't have to care about
# permission or SSL issues.
SIMPLETEST_BASE_URL: "http://app:8888"
SIMPLETEST_DB: "mysql://drupal:drupal@db:3306/drupal"
BROWSERTEST_OUTPUT_BASE_URL: "https://${DRUPAL_HOSTNAME}"
BROWSERTEST_OUTPUT_DIRECTORY: "/app/public/sites/default/files/simpletest"
DRUPAL_VARNISH_HOST: "${COMPOSE_PROJECT_NAME}-varnish"
Expand Down
Loading
Loading