Skip to content

Commit

Permalink
feat: autogenerate filter
Browse files Browse the repository at this point in the history
  • Loading branch information
phorcys420 committed Aug 11, 2024
1 parent a1878a0 commit f22203f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 22 deletions.
34 changes: 12 additions & 22 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,21 @@ jobs:
features: ${{ steps.filter.outputs.changes }}
steps:
- uses: actions/checkout@v4

- id: autogenerate-filter
run: |
echo "filter<<EOF" >> "$GITHUB_OUTPUT"
find src -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | xargs -I %s -- echo '%s:
- src/%s/**
- test/%s/**' >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
android-sdk:
- src/android-sdk/**
- test/android-sdk/**
burp-suite:
- src/burp-suite/**
- test/burp-suite/**
coder:
- src/coder/**
- test/coder/**
cutter:
- src/cutter/**
- test/cutter/**
ghidra:
- src/ghidra/**
- test/ghidra/**
lib-common:
- src/lib-common/**
- test/lib-common/**
lib-github:
- src/lib-github/**
- test/lib-github/**
filters: ${{ steps.autogenerate-filter.outputs.filter }}

test-autogenerated:
needs: changes
Expand Down
Empty file added src/android-sdk/citest
Empty file.
Empty file added test/coder/citest
Empty file.

0 comments on commit f22203f

Please sign in to comment.