Skip to content

Commit

Permalink
[#3404] Move project to Setup Gradle Repo from Global repo
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaozhan committed May 3, 2024
1 parent 1e99500 commit 54bf301
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 88 deletions.
71 changes: 11 additions & 60 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,8 @@ jobs:
status: ${{ steps.status.outputs.status }}
steps:

- name: Clone Repo
uses: actions/checkout@v4.1.4
with:
submodules: 'recursive'
fetch-depth: 0
- name: Setup Gradle Repo
uses: Oztechan/Global/.github/workflows/reusable-setup-gradle-repo.yml@v1.0.2

- name: Adding secret files
run: |
Expand All @@ -83,19 +80,8 @@ jobs:
echo "${{ secrets.AG_CONNECT_SERVICES_JSON_ASC }}" > agconnect-services.json.asc
gpg -d --passphrase "${{ secrets.SECRET_PASSWORD }}" --batch agconnect-services.json.asc > android/app/src/release/agconnect-services.json
- name: Set up JDK 17
uses: actions/setup-java@v4.2.1
with:
java-version: 17
distribution: 'temurin'

- name: Assemble
uses: gradle/actions/setup-gradle@v3.3.2
with:
arguments: assemble
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use"
build-scan-terms-of-use-agree: "yes"
run: ./gradlew assemble

- name: Upload Android Artifacts
uses: actions/upload-artifact@v4.3.3
Expand Down Expand Up @@ -161,11 +147,8 @@ jobs:
status: ${{ steps.status.outputs.status }}
steps:

- name: Clone Repo
uses: actions/checkout@v4.1.4
with:
submodules: 'recursive'
fetch-depth: 0
- name: Setup Gradle Repo
uses: Oztechan/Global/.github/workflows/reusable-setup-gradle-repo.yml@v1.0.2

- name: Adding secret files
run: |
Expand All @@ -186,12 +169,6 @@ jobs:
echo "${{ secrets.IOS_GPG_RELEASE_XCCONFIG }}" > Release.xcconfig.asc
gpg -d --passphrase "${{ secrets.SECRET_PASSWORD }}" --batch Release.xcconfig.asc > ios/CCC/Resources/Release/Config.xcconfig
- name: Set up JDK 17
uses: actions/setup-java@v4.2.1
with:
java-version: 17
distribution: 'temurin'

- name: Build
working-directory: ios
run: fastlane build
Expand Down Expand Up @@ -251,24 +228,11 @@ jobs:
status: ${{ steps.status.outputs.status }}
steps:

- name: Clone Repo
uses: actions/checkout@v4.1.4
with:
submodules: 'recursive'

- name: Set up JDK 17
uses: actions/setup-java@v4.2.1
with:
java-version: 17
distribution: 'temurin'
- name: Setup Gradle Repo
uses: Oztechan/Global/.github/workflows/reusable-setup-gradle-repo.yml@v1.0.2

- name: Run Quality Jobs
uses: gradle/actions/setup-gradle@v3.3.2
with:
arguments: check koverMergedXmlReport --parallel
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use"
build-scan-terms-of-use-agree: "yes"
run: ./gradlew check koverMergedXmlReport --parallel

- name: Upload Coverage Report
uses: actions/upload-artifact@v4.3.3
Expand Down Expand Up @@ -337,24 +301,11 @@ jobs:
status: ${{ steps.status.outputs.status }}
steps:

- name: Clone Repo
uses: actions/checkout@v4.1.4
with:
submodules: 'recursive'

- name: Set up JDK 17
uses: actions/setup-java@v4.2.1
with:
java-version: 17
distribution: 'temurin'
- name: Setup Gradle Repo
uses: Oztechan/Global/.github/workflows/reusable-setup-gradle-repo.yml@v1.0.2

- name: Detekt
uses: gradle/actions/setup-gradle@v3.3.2
with:
arguments: detektAll
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use"
build-scan-terms-of-use-agree: "yes"
run: ./gradlew detektAll

- name: SwiftLint
uses: norio-nomura/action-swiftlint@3.2.1
Expand Down
33 changes: 5 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,8 @@ jobs:
status: ${{ steps.status.outputs.status }}
steps:

- name: Clone Repo
uses: actions/checkout@v4.1.4
with:
submodules: 'recursive'
fetch-depth: 0
- name: Setup Gradle Repo
uses: Oztechan/Global/.github/workflows/reusable-setup-gradle-repo.yml@v1.0.2

- name: Adding secret files
run: |
Expand All @@ -78,19 +75,8 @@ jobs:
echo "${{ secrets.AG_CONNECT_SERVICES_JSON_ASC }}" > agconnect-services.json.asc
gpg -d --passphrase "${{ secrets.SECRET_PASSWORD }}" --batch agconnect-services.json.asc > android/app/src/release/agconnect-services.json
- name: Set up JDK 17
uses: actions/setup-java@v4.2.1
with:
java-version: 17
distribution: 'temurin'

- name: Generate Artifacts
uses: gradle/actions/setup-gradle@v3.3.2
with:
arguments: :android:app:bundleRelease :backend:app:jar --parallel
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use"
build-scan-terms-of-use-agree: "yes"
run: ./gradlew :android:app:bundleRelease :backend:app:jar --parallel

- name: Upload Google App Bundle
uses: actions/upload-artifact@v4.3.3
Expand Down Expand Up @@ -216,17 +202,8 @@ jobs:
outputs:
status: ${{ steps.status.outputs.status }}
steps:
- name: Clone Repo
uses: actions/checkout@v4.1.4
with:
submodules: 'recursive'
fetch-depth: 0

- name: Set up JDK 17
uses: actions/setup-java@v4.2.1
with:
java-version: 17
distribution: 'temurin'
- name: Setup Gradle Repo
uses: Oztechan/Global/.github/workflows/reusable-setup-gradle-repo.yml@v1.0.2

- name: Adding secret files
run: |
Expand Down

0 comments on commit 54bf301

Please sign in to comment.