skip test-check for act_exec also, and try new option

Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
a1012112796 committed 2023-08-21 03:33:41 +00:00
1 parent 80ae79c061
commit f3423d05a5
2 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ jobs:
id: changes
with:
# needed for `act_runner exec`
ref: ${{ env.ACT_EXEC == 'true' && 'HEAD' || env.GITHUB_REF }}
base: ${{ env.ACT_EXEC == 'true' && 'HEAD' || '' }}
filters: |
backend:
- "**/*.go"
+4 -1
View File
@@ -456,7 +456,10 @@ test-frontend: node_modules
test-check:
@echo "Running test-check...";
@diff=$$(git status -s); \
if [ -n "$$diff" ]; then \
if [ "$(ACT_EXEC)" = "true" ]; then \
echo "skip 'test-check' when using 'act_runner exec', please check it manually!"; \
exit 0; \
elif [ -n "$$diff" ]; then \
echo "make test-backend has changed files in the source tree:"; \
echo "$${diff}"; \
echo "You should change the tests to create these files in a temporary directory."; \