From 8412d50785b82a42aff15a079a1c1191348efc08 Mon Sep 17 00:00:00 2001 From: Xu Han Date: Mon, 4 Mar 2024 19:44:43 +0800 Subject: [PATCH] tryin fix ci --- .github/workflows/pretest.yaml | 11 +++++++++-- Taskfile.yaml | 1 + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pretest.yaml b/.github/workflows/pretest.yaml index b7b9dc9..e7d9334 100644 --- a/.github/workflows/pretest.yaml +++ b/.github/workflows/pretest.yaml @@ -15,8 +15,15 @@ jobs: FROM project-dev ADD . /project - # create an empty file to make `go:embed` happy - RUN cd /project && mkdir app/frontend/build && touch app/frontend/build/test && mkdir docs/build && touch docs/build/test + # create empty files to make `go:embed` happy + RUN \ + cd /project && \ + mkdir app/frontend/build && \ + touch app/frontend/build/test && \ + mkdir docs/build && \ + touch docs/build/test && \ + mkdir app/yjs-server/bin && \ + touch app/yjs-server/bin/yjs-server # generate code RUN cd /project && task openapi && task proto diff --git a/Taskfile.yaml b/Taskfile.yaml index 1198546..62a81e8 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -54,6 +54,7 @@ tasks: build-dev: cmds: - rm -f build/nutsh-dev + - task: yjs:build - task: frontend:build-dev - task: backend:build - mv build/nutsh build/nutsh-dev