diff --git a/.github/workflows/kotlin_ci.yml b/.github/workflows/kotlin_ci.yml new file mode 100644 index 00000000..8c2d4688 --- /dev/null +++ b/.github/workflows/kotlin_ci.yml @@ -0,0 +1,28 @@ +name: Kotlin CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'adopt' + cache: gradle + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build + - name: Run ktlint + run: ./gradlew ktlintCheck + - name: Run tests + run: ./gradlew test