Skip to content

Commit

Permalink
[TESTING] Fixes GitHub actions to only test snippets when Weblate PR (h…
Browse files Browse the repository at this point in the history
…edyorg#3763)

**Description**
We fix an ongoing issue where the Weblate check in the GitHub Actions was incorrect. This should be fixed now.

**Fixes**


**How to test**
Merge, update Weblate PR with main and verify that the flow works as expected.
  • Loading branch information
TiBiBa authored Dec 2, 2022
1 parent 3defdb6 commit 9b2665f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,14 @@ jobs:
id: weblate_tests
if: ${{ github.event.pull_request.user.login == 'weblate' }}
run: |
Write-Host "::set-output name=run::True"
build-tools/github/validate --weblate
- name: Run all tests
shell: pwsh
if: ${{(steps.check_file_changed.outputs.docs_changed == 'True' || github.event.label.name == 'force_tests') && steps.weblate_tests.run != 'True'}}
if: ${{ ((steps.check_file_changed.outputs.docs_changed == 'True' && github.event.pull_request.user.login != 'weblate') || github.event.label.name == 'force_tests') }}
run: |
build-tools/github/validate --all
- name: Run non-code related tests
shell: pwsh
if: ${{steps.check_file_changed.outputs.docs_changed != 'True' && steps.weblate_tests.run != 'True'}}
if: ${{ (steps.check_file_changed.outputs.docs_changed != 'True' && github.event.pull_request.user.login != 'weblate') }}
run: |
build-tools/github/validate

0 comments on commit 9b2665f

Please sign in to comment.