-
-
Notifications
You must be signed in to change notification settings - Fork 53
70 lines (56 loc) · 1.68 KB
/
test.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
67
68
69
70
name: test
on:
workflow_dispatch:
push:
branches: [ master, dev, jdk8 ]
pull_request:
branches: [ master, dev, jdk8 ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ 17, 21 ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: zulu
cache: maven
- name: mvn spring-javaformat:validate
run: mvn spring-javaformat:validate
- name: mvn clean install
run: mvn clean install
- name: init
run: cd docker && chmod 751 ./deploy.sh && ./deploy.sh init
- name: Start Base
run: |
cd docker
docker compose up -d twelvet-mysql twelvet-redis
sleep 60
docker compose up -d twelvet-nacos
- name: Start Server
run: |
sleep 30
cd docker
docker compose up -d twelvet-gateway twelvet-auth twelvet-server-system
- name: Check Server twelvet-mysql
run: |
docker logs --tail 500 twelvet-mysql
- name: Check Server twelvet-redis
run: |
docker logs --tail 500 twelvet-redis
- name: Check Server twelvet-nacos
run: |
docker logs --tail 500 twelvet-nacos
- name: Check Server twelvet-gateway
run: |
docker logs --tail 500 twelvet-gateway
- name: Check Server twelvet-auth
run: |
docker logs --tail 500 twelvet-auth
- name: Check Server twelvet-server-system
run: |
docker logs --tail 500 twelvet-server-system