Skip to content

Commit dafefbc

Browse files
authored
Merge pull request #1469 from rffontenelle/add-problem-matcher
Add problem matcher for test-translations.yml
2 parents bba3413 + 0145ba5 commit dafefbc

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/sphinx_lint_matcher.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "sphinx-lint-problem-matcher",
5+
"pattern": [
6+
{
7+
"regexp": "^(.*):(\\d+):\\s+(.*)$",
8+
"file": 1,
9+
"line": 2,
10+
"message": 3
11+
}
12+
]
13+
}
14+
]
15+
}

.github/workflows/test-translations.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,24 @@ jobs:
5858
ref: ${{ env.I18N_BRANCH }}
5959

6060
- name: Set up Python
61-
uses: actions/setup-python@v4
61+
uses: actions/setup-python@v5
6262
with:
6363
python-version: >-
6464
3.10
6565
6666
- name: Install Python tooling
6767
run: python -m pip install --upgrade nox virtualenv sphinx-lint
6868

69+
- name: Set Sphinx problem matcher
70+
uses: sphinx-doc/[email protected]
71+
6972
- name: Build translated docs in ${{ matrix.language }}
7073
run: nox -s build -- -q -D language=${{ matrix.language }}
7174

75+
- name: Set Sphinx Lint problem matcher
76+
if: always()
77+
run: echo '::add-matcher::.github/sphinx_lint_matcher.json'
78+
7279
- name: Lint translation file
80+
if: always()
7381
run: sphinx-lint locales/${{ matrix.language }}/LC_MESSAGES/messages.po

0 commit comments

Comments
 (0)