Skip to content

Commit

Permalink
Build script
Browse files Browse the repository at this point in the history
  • Loading branch information
vooft committed Nov 10, 2024
1 parent 3d0b7b3 commit 5294ec0
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 34 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: build-on-push

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

permissions:
checks: write
pull-requests: write
contents: write
issues: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'

- name: Pull docker images
run: |
docker pull postgres:16-alpine
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4

- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v4

- name: Build for ${{ github.ref }}
run: ./gradlew build --parallel

- name: Publish Test Report
uses: mikepenz/action-junit-report@v5
if: always()
with:
include_passed: true
detailed_summary: true
report_paths: '**/build/test-results/test/TEST-*.xml'

2 changes: 2 additions & 0 deletions composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ kotlin {
implementation(libs.androidx.lifecycle.runtime.compose)
implementation(libs.kotlinx.serialization.json)
implementation(libs.kotlinx.datetime)

implementation(libs.pepper.bdd.reports.api)
}
desktopMain.dependencies {
implementation(compose.desktop.currentOs)
Expand Down

This file was deleted.

6 changes: 2 additions & 4 deletions composeApp/src/commonMain/kotlin/io/github/vooft/Greeting.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package io.github.vooft

class Greeting {
private val platform = getPlatform()

fun greet(): String {
return "Hello, ${platform.name}!"
return "Hello, kek!"
}
}
}
7 changes: 0 additions & 7 deletions composeApp/src/commonMain/kotlin/io/github/vooft/Platform.kt

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ kotlinx-coroutines-swing = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version = "1.7.3" }
kotlinx-datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version = "0.6.1" }

pepper-bdd-reports-api = { module = "io.github.vooft:pepper-bdd-reports-api", version = "0.2.1" }

[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
android-library = { id = "com.android.library", version.ref = "agp" }
Expand Down

0 comments on commit 5294ec0

Please sign in to comment.