Skip to content

Commit

Permalink
Setting ci
Browse files Browse the repository at this point in the history
Setting ci
  • Loading branch information
Tmdhoon2 authored Jan 16, 2024
2 parents edbb228 + bd88c7a commit 47bdac2
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Android CI

on:
push:
branches:
- develop
- main
pull_request:
branches:
- develop
- main

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: set up JDK 18
uses: actions/setup-java@v3
with:
java-version: '18'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
22 changes: 22 additions & 0 deletions .github/workflows/ktlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: reviewdog
on: [pull_request]

jobs:
ktlint:
name: Check Code Quality
runs-on: ubuntu-latest

steps:
- name: Clone repo
uses: actions/checkout@main
with:
fetch-depth: 1

- name: ktlint
uses: ScaCap/action-ktlint@master
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
android: true
fail_on_error: true
level: warning
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.androidLibrary) apply false
}
alias(libs.plugins.kotlin.android) apply false
}

0 comments on commit 47bdac2

Please sign in to comment.