Skip to content

Commit

Permalink
Add hackernews integration test
Browse files Browse the repository at this point in the history
Remove project accessors
  • Loading branch information
runningcode committed Jan 17, 2025
1 parent 6e869bd commit 3d3b22a
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 9 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/integration-hackernews.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Hackernews Gradle Plugin Integration

on:
push:
pull_request:
branches: [ main ]
paths:
- gradle/**
- gradle-plugin/**

jobs:

build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
path: emerge-android
- uses: actions/checkout@v4
with:
repository: EmergeTools/hackernews
path: hackernews
- name: Set up JDKs
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 17
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build hackernews with Emerge Android as included build
run: cd hackernews/android && ./gradlew :app:assembleDebug --include-build ../../emerge-android/gradle-plugin
- name: Archive test reports
uses: actions/upload-artifact@v4
if: always()
with:
name: Functional test reports
path: '**/build/reports/tests/functionalTest'

2 changes: 1 addition & 1 deletion benchmark/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ dependencies {
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.junit)
androidTestImplementation(libs.androidx.benchmark.junit4)
androidTestImplementation(projects.reaper.reaper)
androidTestImplementation(project(":reaper:reaper"))
}
2 changes: 1 addition & 1 deletion distribution/sample/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ dependencies {
implementation(libs.kotlinx.serialization)

// Distribution SDK
implementation(projects.distribution.distribution)
implementation(project(":distribution:distribution"))

implementation(platform(libs.compose.bom))
implementation(libs.compose.ui)
Expand Down
2 changes: 1 addition & 1 deletion gradle-plugin/plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ dependencies {
testRuntimeOnly(libs.junit.jupiter.engine)
testRuntimeOnly(libs.junit.platform.launcher)

"functionalTestImplementation"(projects.emergeGradlePlugin.plugin)
"functionalTestImplementation"(project(":plugin"))
"functionalTestImplementation"(libs.junit.jupiter.api)
"functionalTestImplementation"(libs.okhttp.mockwebserver)
"functionalTestImplementation"(libs.kotlinx.serialization)
Expand Down
2 changes: 1 addition & 1 deletion performance/sample/perfTesting/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {
dependencies {
// We're depending on the local project here
// In real-world impl, you'd use the Maven dependency
implementation(projects.performance.performance)
implementation(project(":performance:performance"))
// Emerge's UIAutomator helper library (Optional): https://github.com/EmergeTools/relax
implementation("com.emergetools.test:relax:0.1.0")
}
2 changes: 1 addition & 1 deletion reaper/sample/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ dependencies {
implementation(libs.kotlinx.serialization)

// Reaper SDK
implementation(projects.reaper.reaper)
implementation(project(":reaper:reaper"))

implementation(platform(libs.compose.bom))
implementation(libs.compose.ui)
Expand Down
2 changes: 1 addition & 1 deletion reaper/sample/manuallyInitializedApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ dependencies {

// Reaper SDK
implementation(libs.androidx.startup.runtime)
implementation(projects.reaper.reaper)
implementation(project(":reaper:reaper"))
}
2 changes: 1 addition & 1 deletion reaper/sample/stress/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ dependencies {
implementation(libs.kotlinx.serialization)

// Reaper SDK
implementation(projects.reaper.reaper)
implementation(project(":reaper:reaper"))

implementation(platform(libs.compose.bom))
implementation(libs.compose.ui)
Expand Down
1 change: 0 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ dependencyResolutionManagement {
}

enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
enableFeaturePreview("STABLE_CONFIGURATION_CACHE")

include(
":performance",
Expand Down
2 changes: 1 addition & 1 deletion snapshots/snapshots/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ dependencies {
api(libs.compose.ui.tooling)
api(libs.compose.foundation.android)

api(projects.snapshots.snapshotsShared)
api(project(":snapshots:snapshots-shared"))
api(libs.androidx.test.core)
api(libs.androidx.test.core.ktx)
api(libs.androidx.test.ext.junit)
Expand Down

0 comments on commit 3d3b22a

Please sign in to comment.