File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,17 @@ name: Gitconvex build deploy
3
3
on : push
4
4
5
5
jobs :
6
+ gitconvex-test :
7
+ name : Gitconvex test
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - name : Run Go Test
11
+ run : |
12
+ go test -v ./...
13
+
6
14
# Build for Ubuntu Linux
7
15
build-linux :
16
+ needs : gitconvex-test
8
17
runs-on : ubuntu-latest
9
18
steps :
10
19
- name : Set up Go 1.x
42
51
run : |
43
52
echo "# gitconvex GoLang project" > /home/runner/work/gitconvex/gitconvex/README.md
44
53
45
- - name : Run test cases
46
- run : |
47
- git config --global user.name "${{ secrets.USER_NAME }}" && git config --global user.email "${{ secrets.USER_EMAIL }}"
48
- export GOTESTENV=ci && gotestsum --format=testname ./...
49
-
50
54
- name : Package gitconvex bundle
51
55
run : |
52
56
make build
64
68
65
69
# Build for MacOS
66
70
build-macos :
71
+ needs : gitconvex-test
67
72
runs-on : macos-latest
68
73
steps :
69
74
- name : Install brew
99
104
100
105
# Test Build for Windows
101
106
build-windows :
107
+ needs : gitconvex-test
102
108
runs-on : windows-latest
103
109
defaults :
104
110
run :
You can’t perform that action at this time.
0 commit comments