Skip to content

Commit

Permalink
only run og compliance tests if there was a change
Browse files Browse the repository at this point in the history
  • Loading branch information
squell committed Jan 14, 2025
1 parent c540d32 commit 00e8f25
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,21 @@ jobs:
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache

compliance-tests-detect-changes:
runs-on: ubuntu-latest
outputs:
updated: ${{ steps.filter.outputs.test-framework }}
steps:
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
id: filter
with:
filters: |
test-framework:
- 'test-framework/**'

compliance-tests-og:
needs: compliance-tests-detect-changes
if: ${{ needs.compliance-tests-detect-changes.updated == 'true' }}
runs-on: ubuntu-latest
env:
SUDO_TEST_VERBOSE_DOCKER_BUILD: 1
Expand Down

0 comments on commit 00e8f25

Please sign in to comment.