Skip to content

Commit

Permalink
Add git action
Browse files Browse the repository at this point in the history
  • Loading branch information
taewooyo committed Nov 3, 2023
1 parent c8a55f6 commit 6024fec
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 6 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Android CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
lint:
name: Spotless check
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/[email protected]
- name: Set up JDK
uses: actions/[email protected]
with:
distribution: zulu
java-version: 17
- uses: gradle/[email protected]
- name: spotless
run: ./gradlew spotlessCheck

api_check:
name: API check
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/[email protected]
- name: Set up JDK
uses: actions/[email protected]
with:
distribution: zulu
java-version: 17
- uses: gradle/[email protected]
- name: API check
run: ./gradlew apiCheck

build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: set up JDK
uses: actions/[email protected]
with:
distribution: zulu
java-version: 17

- uses: gradle/[email protected]
- name: Make Gradle executable
run: chmod +x ./gradlew

- name: Build with Gradle
run: |
./gradlew --scan --stacktrace \
assemble
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pluginManagement {
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ class SquarifiedMeasurer : Measurer {
* @param [w] 그려질 수 있는 영역의 남은 값.
*/
private fun squarify(
elements: List<TreemapElement>,
row: List<TreemapElement>,
w: Double,
elements: List<TreemapElement>,
row: List<TreemapElement>,
w: Double,
) {
if (elements.isNotEmpty()) {
val remainPopped = ArrayDeque(elements)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import com.taewooyo.volcano.volcano.VolcanoElement
import com.taewooyo.volcano.volcano.VolcanoElementListBuilder

public data class VolcanoSection(
val name: String?,
val weight: Double,
val elements: List<VolcanoElement>,
val name: String?,
val weight: Double,
val elements: List<VolcanoElement>,
) {

class Builder {
Expand Down

0 comments on commit 6024fec

Please sign in to comment.