-
Notifications
You must be signed in to change notification settings - Fork 140
58 lines (53 loc) · 1.23 KB
/
ci.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
name: build & test
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
build:
name: build & test
runs-on: ubuntu-latest
services:
etcd:
image: gcr.io/etcd-development/etcd:v3.5.0
ports:
- 2379:2379
env:
ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379
ETCD_ADVERTISE_CLIENT_URLS: http://0.0.0.0:2379
consul:
image: consul:latest
ports:
- 8500:8500
nacos:
image: nacos/nacos-server:latest
env:
MODE: standalone
ports:
- "8848:8848"
- "9848:9848"
polaris:
image: polarismesh/polaris-server-standalone:latest
ports:
- 8090:8090
- 8091:8091
eureka:
image: huyuanxin/eureka-server:3.1.2
ports:
- 8761:8761
steps:
- name: checkout
uses: actions/checkout@v2
- name: Set up Java jdk
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
settings-path: ${{ github.workspace }}
- name: test
run: mvn test
- name: build
run: mvn -Dmaven.test.skip=true clean install -U