mirror of
https://github.com/btouchard/ackify-ce.git
synced 2026-02-08 14:58:36 -06:00
fix(ci): create empty web/dist directory before backend tests
The go:embed directive in main.go requires web/dist to exist during compilation. Backend tests don't need the actual frontend, just an empty directory to satisfy the embed directive.
This commit is contained in:
5
.github/workflows/test-backend.yml
vendored
5
.github/workflows/test-backend.yml
vendored
@@ -44,6 +44,11 @@ jobs:
|
||||
cd backend
|
||||
go mod download
|
||||
|
||||
- name: Create empty frontend dist directory for embed directive
|
||||
run: |
|
||||
mkdir -p backend/cmd/community/web/dist
|
||||
echo '{}' > backend/cmd/community/web/dist/.gitkeep
|
||||
|
||||
- name: Run go fmt check
|
||||
run: |
|
||||
cd backend
|
||||
|
||||
Reference in New Issue
Block a user