Giter VIP home page Giter VIP logo

Comments (7)

arriolac avatar arriolac commented on May 17, 2024 2

@Rocksnake this issue is here for anyone to pick up, so feel free to take on :)

I think adding UI tests is out of scope for this issue, I was imaging this would purely be an improvement on the current workflow set up. Doing something like:

  1. Create a reusable workflow similar to https://github.com/android/compose-samples/blob/main/.github/workflows/build-sample.yml
  2. Update Build.yaml to use the reusable workflow
  3. Create a new workflow that to build/test app-nia-catalog

from nowinandroid.

arriolac avatar arriolac commented on May 17, 2024 1

Thanks for clarifying. Yes, it makes sense to close this as the current workflow already accounts for both apps. I don't see much value in creating a separate workflow in that case.

from nowinandroid.

Rocksnake avatar Rocksnake commented on May 17, 2024

@arriolac, I hope you can assign this issue to me, I will directly add the build workflow in Build.yaml to build the app-nia-catalog module.

However, there is a question about the test workflow of the app-nia-catalog module that needs to be answered, the app-nia-catalog module does not have the same functions as the app module and needs ui test. In the app module, the Navigation needs to do ui test. Do I need to add ui testing in the app-nia-catalog?

Great Thanks!

from nowinandroid.

camina-apps avatar camina-apps commented on May 17, 2024

I guess it make sense to wait for this PR #130 to get merged

from nowinandroid.

YuraLaguta avatar YuraLaguta commented on May 17, 2024

@arriolac after looking at it more closely, compose-samples is monorepo with multiple apps while nowinandroid is single app repo with extra demo app.

Maybe this issue is outdated?

The current Build.yaml workflow is specific to building and testing the app module, however, there are more than 1 apps in the project.

Because current workflow builds and tests all modules, the only app specific steps are Upload build outputs & Upload build reports
If we are interested in build outputs for app-nia-catalog it is easy to add, as for reusable workflow we can extract 2 steps mentioned above, yet it would be of questionable value since it's only lint reports and they are usually ignored by most devs unless configured to warningsAsErrors true

Would you please advise on how to proceed or close the issue?

from nowinandroid.

arriolac avatar arriolac commented on May 17, 2024

@YuraLaguta great that you are helping out with this. You can have the workflow accept two parameters (like uploadOutputs and uploadReports) which can default to true but overridden by app-nia-catalog to set as false so the behavior of outputs of the workflows won't change.

from nowinandroid.

YuraLaguta avatar YuraLaguta commented on May 17, 2024

@arriolac thanks for quick reply, I'm sorry for not being clear enough, the problem stated in the issue description does NOT exist.

The current Build.yaml workflow is specific to building and testing the app module

Current Build.yaml :

      ...
      - name: Build all build type and flavor permutations
        run: ./gradlew assemble --stacktrace

      - name: Run local tests
        run: ./gradlew testDemoDebug testProdDebug --stacktrace
      ...
      script: ./gradlew connectedProdDebugAndroidTest -x :benchmark:connectedProdBenchmarkAndroidTest --stacktrace

builds and tests all modules in the project.

from nowinandroid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.