mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-15 04:07:03 +05:30
chore(ci): migrate to new Gradle actions
This commit is contained in:
parent
38f71460f0
commit
051b7ab2bb
4 changed files with 39 additions and 49 deletions
47
.github/workflows/ci.yml
vendored
47
.github/workflows/ci.yml
vendored
|
@ -29,13 +29,16 @@ jobs:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: 18
|
java-version: 18
|
||||||
|
|
||||||
|
- name: Setup Gradle
|
||||||
|
uses: gradle/actions/setup-gradle@v3-beta
|
||||||
|
with:
|
||||||
|
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
|
||||||
|
gradle-home-cache-cleanup: true
|
||||||
|
add-job-summary: always
|
||||||
|
dependency-graph: generate-and-submit
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
|
run: ./gradlew --no-configuration-cache --stacktrace check -PslimTests
|
||||||
with:
|
|
||||||
arguments: --no-configuration-cache --stacktrace check -PslimTests
|
|
||||||
gradle-home-cache-cleanup: true
|
|
||||||
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
|
|
||||||
dependency-graph: generate-and-submit
|
|
||||||
|
|
||||||
- name: (Fail-only) Upload test report
|
- name: (Fail-only) Upload test report
|
||||||
if: failure()
|
if: failure()
|
||||||
|
@ -87,26 +90,24 @@ jobs:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: 18
|
java-version: 18
|
||||||
|
|
||||||
- name: Decrypt secrets
|
- name: Setup Gradle
|
||||||
|
uses: gradle/actions/setup-gradle@v3-beta
|
||||||
|
with:
|
||||||
|
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
|
||||||
|
gradle-home-cache-cleanup: true
|
||||||
|
add-job-summary: always
|
||||||
|
dependency-graph: generate-and-submit
|
||||||
|
|
||||||
|
- name: Build release APK
|
||||||
run: |
|
run: |
|
||||||
./scripts/setup-age.sh
|
./scripts/setup-age.sh
|
||||||
./scripts/signing-setup.sh "$AGE_SECRET_KEY"
|
./scripts/signing-setup.sh "$AGE_SECRET_KEY"
|
||||||
|
|
||||||
|
./gradlew --no-configuration-cache --stacktrace collectReleaseApks
|
||||||
|
|
||||||
|
./scripts/signing-cleanup.sh
|
||||||
|
./scripts/deploy-snapshot.sh
|
||||||
env:
|
env:
|
||||||
AGE_SECRET_KEY: ${{ secrets.AGE_SECRET_KEY }}
|
AGE_SECRET_KEY: ${{ secrets.AGE_SECRET_KEY }}
|
||||||
|
|
||||||
- name: Build release app
|
|
||||||
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
|
|
||||||
env:
|
|
||||||
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
|
|
||||||
with:
|
|
||||||
arguments: --no-configuration-cache --stacktrace collectReleaseApks
|
|
||||||
gradle-home-cache-cleanup: true
|
|
||||||
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
|
|
||||||
|
|
||||||
- name: Clean secrets
|
|
||||||
run: scripts/signing-cleanup.sh
|
|
||||||
|
|
||||||
- name: Deploy snapshot
|
|
||||||
run: scripts/deploy-snapshot.sh
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
|
||||||
|
|
17
.github/workflows/code_quality_analysis.yml
vendored
17
.github/workflows/code_quality_analysis.yml
vendored
|
@ -31,10 +31,9 @@ jobs:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: 18
|
java-version: 18
|
||||||
|
|
||||||
- name: Setup Gradle caching
|
- name: Setup Gradle
|
||||||
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
|
uses: gradle/actions/setup-gradle@v3-beta
|
||||||
with:
|
with:
|
||||||
gradle-home-cache-cleanup: true
|
|
||||||
cache-read-only: true
|
cache-read-only: true
|
||||||
|
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
|
@ -60,18 +59,6 @@ jobs:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
|
|
||||||
- name: Set up JDK
|
|
||||||
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: 18
|
|
||||||
|
|
||||||
- name: Setup Gradle caching
|
|
||||||
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
|
|
||||||
with:
|
|
||||||
gradle-home-cache-cleanup: true
|
|
||||||
cache-read-only: true
|
|
||||||
|
|
||||||
- name: Setup python
|
- name: Setup python
|
||||||
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
|
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
|
||||||
with:
|
with:
|
||||||
|
|
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
|
@ -27,18 +27,18 @@ jobs:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: 18
|
java-version: 18
|
||||||
|
|
||||||
|
- name: Setup Gradle
|
||||||
|
uses: gradle/actions/setup-gradle@v3-beta
|
||||||
|
with:
|
||||||
|
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
|
||||||
|
gradle-home-cache-cleanup: true
|
||||||
|
|
||||||
- name: Set up Git author
|
- name: Set up Git author
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
git config user.name "GitHub Actions"
|
git config user.name "GitHub Actions"
|
||||||
git config user.email noreply@github.com
|
git config user.email noreply@github.com
|
||||||
|
|
||||||
- name: Setup Gradle caching
|
|
||||||
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
|
|
||||||
with:
|
|
||||||
gradle-home-cache-cleanup: true
|
|
||||||
cache-read-only: true
|
|
||||||
|
|
||||||
- name: Decrypt secrets
|
- name: Decrypt secrets
|
||||||
run: |
|
run: |
|
||||||
./scripts/setup-age.sh
|
./scripts/setup-age.sh
|
||||||
|
|
12
.github/workflows/tramline-release.yml
vendored
12
.github/workflows/tramline-release.yml
vendored
|
@ -25,16 +25,18 @@ jobs:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: 18
|
java-version: 18
|
||||||
|
|
||||||
|
- name: Setup Gradle
|
||||||
|
uses: gradle/actions/setup-gradle@v3-beta
|
||||||
|
with:
|
||||||
|
cache-read-only: true
|
||||||
|
gradle-home-cache-cleanup: true
|
||||||
|
|
||||||
- name: Build release app
|
- name: Build release app
|
||||||
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0
|
run: ./gradlew --no-configuration-cache --stacktrace collectReleaseBundle
|
||||||
env:
|
env:
|
||||||
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
|
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
|
||||||
ORG_GRADLE_PROJECT_VERSION_NAME: ${{ github.event.inputs.versionName }}
|
ORG_GRADLE_PROJECT_VERSION_NAME: ${{ github.event.inputs.versionName }}
|
||||||
ORG_GRADLE_PROJECT_VERSION_CODE: ${{ github.event.inputs.versionCode }}
|
ORG_GRADLE_PROJECT_VERSION_CODE: ${{ github.event.inputs.versionCode }}
|
||||||
with:
|
|
||||||
arguments: --no-configuration-cache --stacktrace collectReleaseBundle
|
|
||||||
gradle-home-cache-cleanup: true
|
|
||||||
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
|
|
||||||
|
|
||||||
- name: Upload app bundle
|
- name: Upload app bundle
|
||||||
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
|
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue