File tree Expand file tree Collapse file tree 2 files changed +47
-1
lines changed
Expand file tree Collapse file tree 2 files changed +47
-1
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout repository
17+ uses : actions/checkout@v3
18+
19+ - name : Set up JDK 17
20+ uses : actions/setup-java@v3
21+ with :
22+ java-version : ' 17'
23+ distribution : ' corretto'
24+
25+ - name : Cache Kotlin dependencies
26+ uses : actions/cache@v3
27+ with :
28+ path : ~/.gradle/caches
29+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
30+ restore-keys : |
31+ ${{ runner.os }}-gradle-
32+
33+ - name : Cache Gradle wrapper
34+ uses : actions/cache@v3
35+ with :
36+ path : ~/.gradle/wrapper
37+ key : ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
38+ restore-keys : |
39+ ${{ runner.os }}-gradle-wrapper-
40+
41+ - name : Run spotless and tests
42+ run : ./gradlew spotlessApply test
43+
44+ - name : Run tests
45+ run : ./gradlew test
Original file line number Diff line number Diff line change 3333/.nb-gradle /
3434
3535# ## VS Code ###
36- .vscode /
36+ .vscode /
37+ .DS_Store
You can’t perform that action at this time.
0 commit comments