Skip to content

Commit f2a0f97

Browse files
author
pixel
committed
Merge branches 'gin-vue-admin_v2_dev' and 'master' of https://github.com/piexlmax/QMPlus into gin-vue-admin_v2_dev
2 parents c96a773 + 0de7565 commit f2a0f97

File tree

2 files changed

+67
-1
lines changed

2 files changed

+67
-1
lines changed

.github/workflows/build_test.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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

server/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ log:
5555
prefix: '[GIN-VUE-ADMIN]'
5656
log-file: true
5757
stdout: 'DEBUG'
58-
file: 'DEBUG'
58+
file: 'DEBUG'

0 commit comments

Comments
 (0)