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 a4aab68 commit bdfcd91
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/tests_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@ 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/${{ github.base_ref }}..origin/${{ github.head_ref }} > changed_files.txt
git diff --name-only woltapp/main..origin/${{ github.head_ref }} > changed_files.txt
if grep -q "^test/" changed_files.txt; then
echo "Tests found in the PR"
echo "tests_present=true" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit bdfcd91

Please sign in to comment.