File tree Expand file tree Collapse file tree 2 files changed +67
-1
lines changed Expand file tree Collapse file tree 2 files changed +67
-1
lines changed Original file line number Diff line number Diff line change 1+ name : gin-vue-admin build test
2+
3+ on :
4+ push :
5+ branches :
6+ - ' *'
7+ paths-ignore :
8+ - ' ./db/**'
9+ - ' **.md'
10+ pull_request :
11+ branches :
12+ - ' *'
13+ paths-ignore :
14+ - ' ./db/**'
15+ - ' **.md'
16+
17+ jobs :
18+ frontend :
19+ name : Frontend build
20+ runs-on : ubuntu-latest
21+ strategy :
22+ matrix :
23+ node-version : [12.x]
24+ steps :
25+
26+ - name : Check out branch
27+ uses : actions/checkout@v2
28+
29+ - name : Use Node.js ${{ matrix.node-version }}
30+ uses : actions/setup-node@v1
31+ with :
32+ node-version : ${{ matrix.node-version }}
33+
34+ - name : Build test
35+ run : |
36+ npm install
37+ npm run build
38+ working-directory : ./web
39+
40+ backend :
41+ name : Backend build
42+ runs-on : ubuntu-latest
43+ steps :
44+
45+ - name : Set up Go 1.13
46+ uses : actions/setup-go@v1
47+ with :
48+ go-version : 1.13
49+ id : go
50+
51+ - name : Check out branch
52+ uses : actions/checkout@v2
53+
54+ - name : Download dependencies
55+ run : |
56+ go get -v -t -d ./...
57+ if [ -f Gopkg.toml ]; then
58+ curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
59+ dep ensure
60+ fi
61+ working-directory : ./server
62+
63+ - name : Test and Build
64+ run : |
65+ go build -v -race
66+ working-directory : ./server
Original file line number Diff line number Diff line change 5555 prefix : ' [GIN-VUE-ADMIN]'
5656 log-file : true
5757 stdout : ' DEBUG'
58- file : ' DEBUG'
58+ file : ' DEBUG'
You can’t perform that action at this time.
0 commit comments