File tree 4 files changed +9
-6
lines changed
4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 30
30
node-version : 18.x
31
31
cache : ' npm'
32
32
cache-dependency-path : console/atest-ui/package-lock.json
33
- - name : Build
34
- run : make build-embed-ui
35
33
- name : Run GoReleaser
36
34
uses :
goreleaser/[email protected]
37
35
with :
Original file line number Diff line number Diff line change 4
4
hooks :
5
5
# You may remove this if you don't use go modules.
6
6
- go mod tidy
7
+ - make embed-ui
7
8
builds :
8
9
- env :
9
10
- CGO_ENABLED=0
Original file line number Diff line number Diff line change 5
5
mkdir -p bin
6
6
rm -rf bin/atest
7
7
go build -o bin/atest main.go
8
- build- embed-ui :
8
+ embed-ui :
9
9
cd console/atest-ui && npm i && npm run build-only
10
10
cp console/atest-ui/dist/index.html cmd/data/index.html
11
11
cp console/atest-ui/dist/assets/* .js cmd/data/index.js
12
12
cp console/atest-ui/dist/assets/* .css cmd/data/index.css
13
- GOOS= ${OS} go build -ldflags " -w -s -X github.com/linuxsuren/api-testing/pkg/version.version= $( shell git rev-parse --short HEAD ) " -o bin/ ${BINARY} main.go
13
+ clean-embed-ui :
14
14
echo -n ' ' > cmd/data/index.html
15
15
echo -n ' ' > cmd/data/index.js
16
16
echo -n ' ' > cmd/data/index.css
17
+ build-embed-ui : embed-ui
18
+ GOOS=${OS} go build -ldflags " -w -s -X github.com/linuxsuren/api-testing/pkg/version.version=$( shell git rev-parse --short HEAD) " -o bin/${BINARY} main.go
19
+ make clean-embed-ui
17
20
build-win-embed-ui :
18
21
BINARY=atest.exe OS=windows make build-embed-ui
19
22
goreleaser :
20
23
goreleaser build --rm-dist --snapshot
24
+ make clean-embed-ui
21
25
build-image :
22
26
${IMG_TOOL} build -t ghcr.io/linuxsuren/api-testing:master . \
23
27
--build-arg GOPROXY=https://goproxy.cn,direct \
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj
6
6
github.com/Masterminds/sprig/v3 v3.2.3 /go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM =
7
7
github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883 h1:bvNMNQO63//z+xNgfBlViaCIJKLlCJ6/fmUseuG0wVQ =
8
8
github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883 /go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8 =
9
- github.com/antonmedv/expr v1.12.1 h1:GTGrGN1kxxb+le0uQKaFRK8By4cvq1sleUCGE/U6hHg =
10
- github.com/antonmedv/expr v1.12.1 /go.mod h1:FPC8iWArxls7axbVLsW+kpg1mz29A1b2M6jt+hZfDkU =
9
+ github.com/antonmedv/expr v1.14.0 h1:C4BHw+0cVyKy/ndU3uqYo6TV5rCtq/SY2Wdlwanvo/Q =
10
+ github.com/antonmedv/expr v1.14.0 /go.mod h1:FPC8iWArxls7axbVLsW+kpg1mz29A1b2M6jt+hZfDkU =
11
11
github.com/bufbuild/protocompile v0.6.0 h1:Uu7WiSQ6Yj9DbkdnOe7U4mNKp58y9WDMKDn28/ZlunY =
12
12
github.com/bufbuild/protocompile v0.6.0 /go.mod h1:YNP35qEYoYGme7QMtz5SBCoN4kL4g12jTtjuzRNdjpE =
13
13
github.com/cpuguy83/go-md2man/v2 v2.0.1 /go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o =
You can’t perform that action at this time.
0 commit comments