Skip to content

Commit

Permalink
Revert "[TESTING] Excludes code tests when no changes are made there (h…
Browse files Browse the repository at this point in the history
…edyorg#3456)" (hedyorg#3460)

This reverts commit 7de3b2b.
  • Loading branch information
Felienne authored Oct 19, 2022
1 parent 99bceb5 commit e2dff86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 24 deletions.
24 changes: 3 additions & 21 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
Expand All @@ -36,21 +34,5 @@ jobs:
- name: Compiling Babel translations
run: |
pybabel compile -f -d translations
- name: Check for changed files in grammar related directories
shell: pwsh
id: check_file_changed
run: |
$diff = git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }}
$SourceDiff = $diff | Where-Object { $_ -match '^content/' -or $_ -match '^grammars/' }
$HasDiff = $SourceDiff.Length -gt 0
Write-Host "::set-output name=docs_changed::$HasDiff"
- name: Run all tests
shell: pwsh
if: steps.check_file_changed.outputs.docs_changed == 'True'
run: |
build-tools/github/validate --all
- name: Run non-code related tests
shell: pwsh
if: steps.check_file_changed.outputs.docs_changed != 'True'
run: |
build-tools/github/validate
- name: Run validations
run: build-tools/github/validate
4 changes: 1 addition & 3 deletions build-tools/github/validate
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ scriptdir=$(cd $(dirname $0) && pwd)
$scriptdir/validate-python
$scriptdir/validate-typescript
$scriptdir/validate-yaml
if [[ "${1:-}" == "--all" ]]; then
$scriptdir/validate-tests
fi
$scriptdir/validate-tests
$scriptdir/validate-e2e

echo "Everything is great! 🍰"

0 comments on commit e2dff86

Please sign in to comment.