-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: validate po files on pull_request
- Loading branch information
1 parent
e5d771f
commit 06acc58
Showing
3 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Validate the po files to ensure translation files are compilable. | ||
|
||
name: Validate translation PO files | ||
|
||
on: | ||
- pull_request | ||
|
||
jobs: | ||
validate-po-files: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Clones the openedx-translations repo | ||
- name: clone openedx/openedx-translations | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install gettext | ||
run: | | ||
sudo apt install -y gettext | ||
- name: Validate translation files | ||
id: validate_translation_files | ||
run: | | ||
make validate_translation_files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
__pycache__ | ||
.pytest_cache | ||
|
||
# msgfmt sometimes leaves these behind in the root directory | ||
/*.mo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters