1+ name : CI Checks
2+ on :
3+ push :
4+ pull_request :
5+
6+ jobs :
7+ lint-check :
8+ name : Lint Check
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - name : Checkout
13+ uses : actions/checkout@v4
14+ with :
15+ submodules : true
16+ fetch-depth : 0 # get full history for branch checking
17+
18+ - name : Run lint check
19+ run : docker compose -f docker/github_actions/docker-compose.yml run unit-test-test-service bash -c ".github/scripts/lint.sh"
20+
21+ unit-test-with-test-service :
22+ name : Unit Test with Test Service
23+ runs-on : ubuntu-latest
24+
25+ steps :
26+ - name : Checkout
27+ uses : actions/checkout@v4
28+ with :
29+ submodules : true
30+ fetch-depth : 0 # get full history for branch checking
31+
32+ - name : Run unit test with test service
33+ uses : nick-fields/retry@v3
34+ with :
35+ max_attempts : 3
36+ timeout_minutes : 30
37+ command : |
38+ docker compose -f docker/github_actions/docker-compose.yml run unit-test-test-service bash -c "./gradlew --no-daemon test jacocoTestReport && .github/scripts/coverage_metadata.sh build/reports/metadata.txt"
39+
40+ - name : Upload coverage artifacts
41+ uses : actions/upload-artifact@v4
42+ with :
43+ name : unit-test-with-test-service-coverage
44+ path : |
45+ build/reports/tests/test/**/*
46+ build/reports/jacoco/test/jacocoTestReport.xml
47+ build/reports/metadata.txt
48+ include-hidden-files : true
49+
50+ unit-test-with-docker-service-sticky-on :
51+ name : Unit Test with Docker Service (Sticky On)
52+ runs-on : ubuntu-latest
53+
54+ steps :
55+ - name : Checkout
56+ uses : actions/checkout@v4
57+ with :
58+ submodules : true
59+ fetch-depth : 0 # get full history for branch checking
60+
61+ - name : Run unit test with docker service (sticky on)
62+ uses : nick-fields/retry@v3
63+ with :
64+ max_attempts : 3
65+ timeout_minutes : 50
66+ command : |
67+ docker compose -f docker/github_actions/docker-compose.yml run unit-test-docker-sticky-on bash -c "./gradlew --no-daemon test"
68+
69+ - name : Upload coverage artifacts
70+ uses : actions/upload-artifact@v4
71+ with :
72+ name : unit-test-with-docker-service-sticky-on-coverage
73+ path : |
74+ build/reports/tests/test/**/*
75+ include-hidden-files : true
76+
77+ unit-test-with-docker-service-sticky-off :
78+ name : Unit Test with Docker Service (Sticky Off)
79+ runs-on : ubuntu-latest
80+
81+ steps :
82+ - name : Checkout
83+ uses : actions/checkout@v4
84+ with :
85+ submodules : true
86+ fetch-depth : 0 # get full history for branch checking
87+
88+ - name : Run unit test with docker service (sticky off)
89+ uses : nick-fields/retry@v3
90+ with :
91+ max_attempts : 3
92+ timeout_minutes : 50
93+ command : |
94+ docker compose -f docker/github_actions/docker-compose.yml run unit-test-docker-sticky-off bash -c "./gradlew --no-daemon test"
95+
96+ - name : Upload coverage artifacts
97+ uses : actions/upload-artifact@v4
98+ with :
99+ name : unit-test-with-docker-service-sticky-off-coverage
100+ path : |
101+ build/reports/tests/test/**/*
102+ include-hidden-files : true
0 commit comments