File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ name : CI
3+
4+ on :
5+ push :
6+ branches : [ "main" ]
7+ pull_request :
8+ branches : [ "main" ]
9+
10+ workflow_dispatch :
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - name : Checkout the code
18+ uses : actions/checkout@v4
19+
20+ - name : Set up JDK 17
21+ uses : actions/setup-java@v4
22+ with :
23+ java-version : ' 17'
24+ distribution : ' adopt'
25+
26+ - name : Make gradlew executable
27+ run : chmod +x gradlew
28+
29+ - name : gradle wrapper
30+ run : gradle wrapper
31+
32+ - name : Build with Gradle
33+ run : ./gradlew build
34+
35+ - name : Run tests
36+ run : ./gradlew test
37+
38+ # TODO ADD COMPOSE TESTS STEP
39+
40+ - name : Upload test report
41+ uses : actions/upload-artifact@v4
42+ with :
43+ name : unit_test_report
44+ path : app/build/reports/tests/testDebugUnitTest/
You can’t perform that action at this time.
0 commit comments