generated from cloudwego/.github
-
Notifications
You must be signed in to change notification settings - Fork 4
60 lines (53 loc) · 1.24 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
name: Tests
on: [ push, pull_request ]
jobs:
unit-benchmark-test:
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@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Unit Test
run: make test