From f22203f8c0445788ac4b87b7aa8eb709656d6da7 Mon Sep 17 00:00:00 2001 From: phorcys420 <57866459+phorcys420@users.noreply.github.com> Date: Sun, 11 Aug 2024 20:25:49 +0000 Subject: [PATCH] feat: autogenerate filter --- .github/workflows/test.yaml | 34 ++++++++++++---------------------- src/android-sdk/citest | 0 test/coder/citest | 0 3 files changed, 12 insertions(+), 22 deletions(-) create mode 100644 src/android-sdk/citest create mode 100644 test/coder/citest diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 201d1f5..52b4206 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -16,31 +16,21 @@ jobs: features: ${{ steps.filter.outputs.changes }} steps: - uses: actions/checkout@v4 + + - id: autogenerate-filter + run: | + echo "filter<> "$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 diff --git a/src/android-sdk/citest b/src/android-sdk/citest new file mode 100644 index 0000000..e69de29 diff --git a/test/coder/citest b/test/coder/citest new file mode 100644 index 0000000..e69de29