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:
parent
80ae79c061
commit
f3423d05a5
2
.github/workflows/files-changed.yml
vendored
2
.github/workflows/files-changed.yml
vendored
@ -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"
|
||||
|
||||
5
Makefile
5
Makefile
@ -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."; \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user