0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-14 17:27:39 +02:00

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

Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
a1012112796 2023-08-21 03:33:41 +00:00
parent 80ae79c061
commit f3423d05a5
No known key found for this signature in database
GPG Key ID: 8304C4283E1B3141
2 changed files with 5 additions and 2 deletions

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"

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."; \