-
Notifications
You must be signed in to change notification settings - Fork 37
42 lines (38 loc) · 1.05 KB
/
ginadmin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: GinAdminTest
on: [push]
jobs:
Build-Docker:
runs-on: ubuntu-latest
services:
redis:
image: redis:6.0
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- name: Setup MySQL
uses: gphper/mysql-action@v1.1
with:
host port: 3306
container port: 3306
character set server: 'utf8'
collation server: 'utf8_general_ci'
mysql version: '5.7'
mysql database: 'db_ginadmin'
mysql root password: '123456'
- name: Golang
uses: actions/setup-go@v3
with:
go-version: '^1.13.1' # The Go version to download (if necessary) and use.
- name: Project pull
uses: actions/checkout@v3
- name: Test Run Project
run: |
go mod download
go run ./cmd/ginadmin db migrate
go run ./cmd/ginadmin db seed
go test -v ./test