Skip to content

Commit

Permalink
Merge pull request #831 from City-of-Helsinki/UHF-X-scan-langcodes
Browse files Browse the repository at this point in the history
Test langcode of configuration
  • Loading branch information
tuutti authored Mar 20, 2024
2 parents 94c3c8c + 7fdfa83 commit fd61b62
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
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
run: |
OUTPUT=$(grep -oP '^langcode: \b(?!(?:en|und)\b)\w+' conf -R || true)
if [ ! -z "$OUTPUT" ]; then
echo "Found configuration exported in wrong language:" >> $GITHUB_STEP_SUMMARY
echo "$OUTPUT" >> $GITHUB_STEP_SUMMARY
exit 1
fi
- name: Build project
run: composer install --no-interaction
Expand Down
2 changes: 1 addition & 1 deletion conf/cmi/search_api.index.street_data.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
uuid: 0f434f1f-19a0-45a2-84bc-9f81e52ade45
langcode: fi
langcode: en
status: true
dependencies:
config:
Expand Down

0 comments on commit fd61b62

Please sign in to comment.