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

ci fixes and testing #1839

Merged
merged 3 commits into from
Oct 20, 2023
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
1 change: 1 addition & 0 deletions .github/ci-gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ org.gradle.parallel=true
org.gradle.jvmargs=-Xmx5120m -XX:+UseParallelGC
org.gradle.workers.max=2
org.gradle.configuration-cache=true
org.gradle.caching=true

kotlin.incremental=false
kotlin.compiler.execution.strategy=in-process
2 changes: 1 addition & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: gradle/gradle-build-action@v2
with:
# Only write to the cache for builds on the 'develop' branch
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
cache-read-only: false
gradle-home-cache-cleanup: true
- name: Prebuild
run: ./scripts/ci-prebuild.sh
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: PR
on: pull_request
jobs:
unit_test:
runs-on: ubuntu-latest
runs-on: ubuntu-latest-64vcpu
steps:
- uses: actions/checkout@v4
- name: Copy CI gradle.properties
Expand All @@ -22,7 +22,7 @@ jobs:
uses: gradle/gradle-build-action@v2
with:
# Only write to the cache for builds on the 'develop' branch
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
cache-read-only: false
gradle-home-cache-cleanup: true
- name: Prebuild
run: ./scripts/ci-prebuild.sh
Expand All @@ -37,7 +37,7 @@ jobs:
paths: "app/build/test-results/testDebugUnitTest/**/TEST-*.xml"
if: always()
lint:
runs-on: ubuntu-latest
runs-on: ubuntu-latest-64vcpu
steps:
- uses: actions/checkout@v4
- name: Copy CI gradle.properties
Expand All @@ -56,7 +56,7 @@ jobs:
uses: gradle/gradle-build-action@v2
with:
# Only write to the cache for builds on the 'develop' branch
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
cache-read-only: false
gradle-home-cache-cleanup: true
- name: Prebuild
run: ./scripts/ci-prebuild.sh
Expand All @@ -70,7 +70,7 @@ jobs:
report-path: app/build/reports/lint-results-debug.xml
continue-on-error: true
ktlint:
runs-on: ubuntu-latest
runs-on: ubuntu-latest-64vcpu
steps:
- uses: actions/checkout@v4
- name: Copy CI gradle.properties
Expand All @@ -89,7 +89,7 @@ jobs:
uses: gradle/gradle-build-action@v2
with:
# Only write to the cache for builds on the 'develop' branch
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
cache-read-only: false
gradle-home-cache-cleanup: true
- name: Prebuild
run: ./scripts/ci-prebuild.sh
Expand All @@ -106,7 +106,7 @@ jobs:
with:
report-path: build/reports/ktlint/*.xml
build:
runs-on: ubuntu-latest
runs-on: ubuntu-latest-64vcpu
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -126,7 +126,7 @@ jobs:
uses: gradle/gradle-build-action@v2
with:
# Only write to the cache for builds on the 'develop' branch
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
cache-read-only: false
gradle-home-cache-cleanup: true
- run: echo VERSION_CODE=$(expr 4700 + ${{ github.run_number }} + ${{ github.run_attempt }} - 1) >> $GITHUB_ENV
- uses: chkfung/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: gradle/gradle-build-action@v2
with:
# Only write to the cache for builds on the 'develop' branch
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
cache-read-only: false
gradle-home-cache-cleanup: true
- run: echo VERSION_CODE=$(expr 4700 + ${{ github.run_number }} + ${{ github.run_attempt }} - 1) >> $GITHUB_ENV
- uses: chkfung/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unused-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: gradle/gradle-build-action@v2
with:
# Only write to the cache for builds on the 'develop' branch
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
cache-read-only: false
gradle-home-cache-cleanup: true

- name: Prebuild
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upload-to-play-store.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: gradle/gradle-build-action@v2
with:
# Only write to the cache for builds on the 'develop' branch
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
cache-read-only: false
gradle-home-cache-cleanup: true
- run: echo VERSION_CODE=$(date +%s) >> $GITHUB_ENV
- uses: chkfung/[email protected]
Expand Down
Loading