-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add preview test #97
Add preview test #97
Conversation
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[spotless] reported by reviewdog 🐶
} | |
} |
import com.airbnb.android.showkase.annotation.ShowkaseRootModule | ||
|
||
@ShowkaseRoot | ||
class ScreenshotShowkaseModule : ShowkaseRootModule |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[spotless] reported by reviewdog 🐶
class ScreenshotShowkaseModule : ShowkaseRootModule | |
class ScreenshotShowkaseModule : ShowkaseRootModule |
# Conflicts: # gradle/libs.versions.toml
@@ -29,6 +29,8 @@ import com.google.accompanist.pager.rememberPagerState | |||
import io.github.droidkaigi.confsched2022.designsystem.theme.KaigiScaffold | |||
import io.github.droidkaigi.confsched2022.designsystem.theme.KaigiTheme | |||
import io.github.droidkaigi.confsched2022.feature.sessions.SessionsUiModel.ScheduleState.Loaded | |||
import io.github.droidkaigi.confsched2022.feature.sessions.SessionsUiModel.ScheduleState.Loading | |||
import io.github.droidkaigi.confsched2022.model.DroidKaigiSchedule |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[spotless] reported by reviewdog 🐶
import io.github.droidkaigi.confsched2022.model.DroidKaigiSchedule |
Related paparazzi Issues |
Please make sure that the addition of screen shots are not in the history due to the repository size. I think you can rebase and squash the commit. 🙏 |
import io.github.droidkaigi.confsched2022.model.Contributor | ||
import io.github.droidkaigi.confsched2022.model.fakes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[spotless] reported by reviewdog 🐶
import io.github.droidkaigi.confsched2022.model.Contributor | |
import io.github.droidkaigi.confsched2022.model.fakes |
There is a Diff in the screenshot |
3 similar comments
There is a Diff in the screenshot |
There is a Diff in the screenshot |
There is a Diff in the screenshot |
There are differences in Compose previews. Please check your build and download the diff artifact. |
6ef7299
to
93208e4
Compare
# Conflicts: # feature-sessions/src/main/java/io/github/droidkaigi/confsched2022/feature/sessions/Sessions.kt
# Conflicts: # gradle/libs.versions.toml
Conflicts resolved. |
There are differences in Compose previews. Please check your build and download the diff artifact. |
.github/workflows/ScreenShotTest.yml
Outdated
with: | ||
message: | | ||
There are differences in Compose previews. Please check your build and download the diff artifact. | ||
https://github.com/DroidKaigi/conference-app-2022/actions/workflows/ScreenShotTest.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be kinder to write https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your comment.
I will fix it the way you taught me.
.github/workflows/ScreenShotTest.yml
Outdated
branches: | ||
- main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
push:
branches:
- main
This may not be necessary, because it should work only at the time of pull request as it is only for pull requests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're absolutely right.
.github/workflows/ScreenShotTest.yml
Outdated
run: ./gradlew preview-screenshots:verifyPaparazziDebug | ||
|
||
- name: Error Screenshot tests | ||
continue-on-error: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may not be necessary, because the verifyPaparazziDebug
step specifies continue-on-error: true
, so it will always succeed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot to delete this one:sweat_smile:
.github/workflows/ScreenShotTest.yml
Outdated
path: preview-screenshots/out/failures | ||
|
||
- name: Comment PR | ||
continue-on-error: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may not be necessary, too.
There are differences in Compose previews. Please check your build and download the diff artifact. |
Commit history has been reorganized and made available for review. |
core-ui/build.gradle.kts
Outdated
plugins { | ||
id("droidkaigi.primitive.android") | ||
id("droidkaigi.primitive.android.kotlin") | ||
id("droidkaigi.primitive.android.compose") | ||
id("droidkaigi.primitive.android.hilt") | ||
id("droidkaigi.primitive.molecule") | ||
id("droidkaigi.primitive.spotless") | ||
alias(libs.plugins.ksp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you create "droidkaigi.primitive.android.compose.showkase"?
preview-screenshots/build.gradle.kts
Outdated
id("droidkaigi.primitive.molecule") | ||
id("droidkaigi.primitive.spotless") | ||
alias(libs.plugins.ksp) | ||
alias(libs.plugins.paparazzi) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you create "droidkaigi.primitive.android.paparazzi"?
settings.gradle.kts
Outdated
@@ -4,7 +4,7 @@ pluginManagement { | |||
gradlePluginPortal() | |||
google() | |||
mavenCentral() | |||
// maven("https://oss.sonatype.org/content/repositories/snapshots/") | |||
maven("https://oss.sonatype.org/content/repositories/snapshots/") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we make it a plugin, we'll be able to remove this? 👀
@sobaya-0141 I commented on some points 🙏 Could you please take a look at the comment? |
Thank you for your review. |
.github/workflows/ScreenShotTest.yml
Outdated
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] Would you keep using v1 action? or just forget changing to v3?
I can see the v3.x.x
in the action releases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to know the your thought if you have. 🙇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are right, it should be v3.x.x.:pray:
) { | ||
NEXUS_5(DeviceConfig.NEXUS_5), | ||
PIXEL_5(DeviceConfig.PIXEL_5), | ||
PIXEL_C(DeviceConfig.PIXEL_C), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, sorry. I never know the Pixel C is tablet device...! bit old device than my engineer life...!
import com.google.testing.junit.testparameterinjector.TestParameter.TestParameterValuesProvider | ||
import com.google.testing.junit.testparameterinjector.TestParameterInjector | ||
import org.junit.Rule | ||
import org.junit.Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for confirmation 👀 , is Paparazzi possible to working with JUnit5? 🤔 if possible, other engineer can use modern toolchain...! ✨
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't check this one.
I would like to get it working first.:pray:
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed the conflict in GitHub. |
@sobaya-0141 If you don't have time, we can develop this PR by recruiting contributors to this PR. What do you think? |
@takahirom |
I can't seem to find the time, so let me give it up.:bow::bow::bow: |
Refine preview test
Let's merge! |
Overview (Required)
Links