File tree 3 files changed +23
-3
lines changed
3 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 20
20
with :
21
21
go-version : " 1.23"
22
22
23
+ - name : Use Node.js
24
+ uses : actions/setup-node@v4
25
+ with :
26
+ node-version : " 20.x"
27
+
23
28
- name : Install Gox
24
29
run : go install github.com/mitchellh/gox@latest
25
30
29
34
- name : Install Task
30
35
uses : arduino/setup-task@v2
31
36
37
+ - name : Build Frontend
38
+ run : task build_frontend
39
+
32
40
- name : Test
33
41
shell : pwsh
34
42
run : task test
Original file line number Diff line number Diff line change 5
5
6
6
tasks :
7
7
build :
8
- deps : [ build_wails ,build_cmd ]
8
+ deps : [build_wails, build_cmd ]
9
9
10
10
test :
11
11
cmds :
12
- - go test -timeout 30s
12
+ - go test -v - timeout 30s ./...
13
13
14
14
build_wails :
15
15
cmds :
@@ -19,11 +19,15 @@ tasks:
19
19
cmds :
20
20
- pwsh ./script/build.ps1
21
21
22
+ build_frontend :
23
+ cmds :
24
+ - pwsh ./script/buildFrontend.ps1
25
+
22
26
wails_dev :
23
27
cmds :
24
28
- wails dev -tags gui
25
29
26
30
build_update_package :
27
31
cmds :
28
32
- Set-Location ./internal/app/package
29
- - go build -ldflags "-s -w" -o upgrade .exe
33
+ - go build -ldflags "-s -w" -o example .exe
Original file line number Diff line number Diff line change
1
+ $ErrorActionPreference = " Stop"
2
+
3
+ Set-Location ./ frontend
4
+
5
+ npm ci
6
+ npm build
7
+
8
+ Set-Location ../
You can’t perform that action at this time.
0 commit comments