-
Notifications
You must be signed in to change notification settings - Fork 40
66 lines (59 loc) · 1.41 KB
/
tests.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Tests
on: [ push, pull_request ]
jobs:
ut:
runs-on: ubuntu-latest
services:
consul:
image: 'hashicorp/consul:latest'
ports:
- '8500:8500'
polaris:
image: 'polarismesh/polaris-server:latest'
ports:
- '8091:8091'
zookeeper:
image: 'zookeeper:3.7.0'
ports:
- '2181:2181'
servicecomb:
image: 'servicecomb/service-center:latest'
ports:
- '30100:30100'
etcd:
image: bitnami/etcd:latest
ports:
- "2379:2379"
- "2380:2380"
env:
ALLOW_NONE_AUTHENTICATION: yes
ETCD_ADVERTISE_CLIENT_URLS: http://etcd:2379
nacos:
image: 'nacos/nacos-server:2.0.3'
ports:
- '8848:8848'
- '9848:9848'
env:
MODE: standalone
eureka:
image: 'xdockerh/eureka-server:latest'
ports:
- "8761:8761"
redis:
image: redis:latest
ports:
- '6379:6379'
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Unit Test
run: make test