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 32e3d77
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 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.outputs.updated == 'true' }}
runs-on: ubuntu-latest
env:
SUDO_TEST_VERBOSE_DOCKER_BUILD: 1
Expand Down Expand Up @@ -130,6 +144,8 @@ jobs:
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
compliance-tests-lint:
needs: compliance-tests-detect-changes
if: ${{ needs.compliance-tests-detect-changes.outputs.updated == 'true' }}
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 32e3d77

Please sign in to comment.