Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
TahaTesser committed Aug 19, 2024
1 parent bdfcd91 commit 880f46b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/tests_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,11 @@ jobs:
with:
fetch-depth: 0

- name: Fetch all branches
run: |
git fetch --all
git fetch woltapp main
- name: Check for changes in test directory
id: check-tests
run: |
git diff --name-only woltapp/main..origin/${{ github.head_ref }} > changed_files.txt
if grep -q "^test/" changed_files.txt; then
git status --porcelain > changed_files.txt
if grep -qE "^[AM]\s+test/" changed_files.txt; then
echo "Tests found in the PR"
echo "tests_present=true" >> $GITHUB_OUTPUT
else
Expand All @@ -39,4 +34,4 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
body: 'It appears that this PR does not include any tests. It is recommended to add tests, especially for critical changes, to ensure code quality and prevent regressions.'
})
})

0 comments on commit 880f46b

Please sign in to comment.