Skip to content
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

Network #8

Merged
merged 4 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 35 additions & 4 deletions .github/workflows/run-lint-and-tests-and-generate-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,15 @@ jobs:
distribution: 'zulu'
java-version: '17'

- name: Get local.properties from secrets
run: echo "${{secrets.ProjectSecrets }}" > $GITHUB_WORKSPACE/local.properties


- name: Make gradlew executable
run: chmod +x ./gradlew

- name: Get local.properties from secrets
run: echo "${{secrets.ProjectSecrets }}" > $GITHUB_WORKSPACE/local.properties




- name: Run Unit Tests
Expand All @@ -60,9 +63,37 @@ jobs:








# Job that assembles debug apk
run-debug-assemble:
name: Debug Build
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Get local.properties from secrets
run: echo "${{secrets.ProjectSecrets }}" > $GITHUB_WORKSPACE/local.properties

- name: Make gradlew executable
run: chmod +x ./gradlew


- name: Assemble debug
run: ./gradlew assembleDebug

- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.3.3
with:
name: GitIssues.apk
path: app/build/outputs/apk/debug/app-debug.apk
name: GitIssues.apk
path: app/build/outputs/apk/debug/app-debug.apk

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ private val coverageExclusions =
"**/Manifest*.*",
"**/*_Hilt*.class",
"**/Hilt_*.class",
"**/*Binding*.*",
"**/di/**", // Exclude DI folders
"**/*_Impl.java", // Exclude Room generated classes
"**/Generated*.class",
"**/*_Impl.class",
"**/Generated*.class", // Exclude Apollo generated classes
"**/*Database$*",
"**/*Database_*",
)

private fun String.capitalize() =
Expand Down