Skip to content

Commit 76247e1

Browse files
committed
fix-swag
1 parent a4e716a commit 76247e1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/build-w7.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,18 +97,26 @@ jobs:
9797
run: |
9898
npm install --global yarn
9999
- name: Install modules
100+
env:
101+
npm_config_loglevel: silent
100102
working-directory: ./torrserver/web
101103
run: |
102104
npm install
103105
- name: Install swag
104106
run: |
105107
go install github.com/swaggo/swag/cmd/swag@latest
108+
- name: Tidy
109+
working-directory: ./torrserver/server
110+
run: |
111+
go mod tidy
106112
- name: Run swag
107113
working-directory: ./torrserver/server
108114
run: |
109-
$HOME/go/bin/swag init -g web/server.go
115+
$HOME/go/bin/swag init -g web/server.go --parseDependency --parseInternal
110116
$HOME/go/bin/swag fmt
111117
- name: Build web
118+
env:
119+
CI: false
112120
run: |
113121
NODE_OPTIONS=--openssl-legacy-provider yarn build
114122
working-directory: ./torrserver/web

0 commit comments

Comments
 (0)