Skip to content

Commit a7545a7

Browse files
committed
update: CI
1 parent d037f2c commit a7545a7

File tree

2 files changed

+5
-22
lines changed

2 files changed

+5
-22
lines changed

.github/workflows/ci.yml

+5-13
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

1616
# Set Current Date As Env Variable
1717
- name: Set current date as env variable
@@ -22,7 +22,7 @@ jobs:
2222
run: echo "repository_name=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
2323

2424
- name: Set Up JDK
25-
uses: actions/setup-java@v3
25+
uses: actions/setup-java@v4
2626
with:
2727
distribution: 'zulu' # See 'Supported distributions' for available options
2828
java-version: '17'
@@ -39,14 +39,6 @@ jobs:
3939
- name: Build gradle project
4040
run: ./gradlew build
4141

42-
# # Run Build API
43-
# - name: Run Main
44-
# run: ./gradlew run-build-api
45-
#
46-
# - name: Sync Repository
47-
# run: |
48-
# git config user.name 'amirisback'
49-
# git config user.email '[email protected]'
50-
# git pull
51-
# git commit -am "Update Server API"
52-
# git push
42+
# Run Build API
43+
- name: Run Main
44+
run: ./gradlew runMainKotlin

src/main/kotlin/Main.kt

-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
package io.github.amirisback
22

3-
//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
4-
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
53
fun main() {
64
val name = "Kotlin"
7-
//TIP Press <shortcut actionId="ShowIntentionActions"/> with your caret at the highlighted text
8-
// to see how IntelliJ IDEA suggests fixing it.
95
println("Hello, $name!")
106

11-
for (i in 1..5) {
12-
//TIP Press <shortcut actionId="Debug"/> to start debugging your code. We have set one <icon src="AllIcons.Debugger.Db_set_breakpoint"/> breakpoint
13-
// for you, but you can always add more by pressing <shortcut actionId="ToggleLineBreakpoint"/>.
14-
println("i = $i")
15-
}
167
}

0 commit comments

Comments
 (0)