File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 branches : [cicd]
88
99jobs :
10- build-and-test :
11- name : Build and Test
12- runs-on : ubuntu-latest
13-
14- steps :
15- - name : Checkout code
16- uses : actions/checkout@v4
17-
18- - name : Set up JDK
19- uses : actions/setup-java@v4
20- with :
21- java-version : " 17"
22- distribution : " temurin"
23- cache : " gradle"
24-
25- - name : Grant execute permission for gradlew
26- run : chmod +x gradlew
27-
28- - name : Format Kotlin code with ktfmt
29- run : ./gradlew ktfmtFormat
30-
31- - name : Build with Gradle
32- run : ./gradlew build
33-
34- - name : Run tests
35- run : ./gradlew test
36-
37- - name : Upload test results
38- uses : actions/upload-artifact@v4
39- if : always()
40- with :
41- name : test-results
42- path : build/reports/tests/test
43-
4410 create-release :
4511 name : Create Release
46- needs : build-and-test
47- if : github.ref == 'refs/heads/cicd'
4812 runs-on : ubuntu-latest
4913
5014 steps :
You can’t perform that action at this time.
0 commit comments