Compare commits

..

1 Commits

Author SHA1 Message Date
31383b3242 ci: Instrumentation tests coverage in ci.
Some checks failed
Check PR code / EspressoReports (pull_request) Failing after 5m51s
2025-03-16 17:44:28 +01:00
2 changed files with 84 additions and 84 deletions

View File

@ -18,7 +18,7 @@ jobs:
java-version: '17' java-version: '17'
cache: gradle cache: gradle
- uses: gradle/actions/setup-gradle@v3 - uses: gradle/actions/setup-gradle@v3
- uses: android-actions/setup-android@v3 #- uses: android-actions/setup-android@v3
- name: Configure gradle... - name: Configure gradle...
run: mkdir -p ~/.gradle && echo "org.gradle.daemon=false\nignoreGitVersion=true" >> ~/.gradle/gradle.properties run: mkdir -p ~/.gradle && echo "org.gradle.daemon=false\nignoreGitVersion=true" >> ~/.gradle/gradle.properties
- uses: KengoTODA/actions-setup-docker-compose@v1 - uses: KengoTODA/actions-setup-docker-compose@v1

View File

@ -8,86 +8,86 @@ jobs:
EspressoReports: EspressoReports:
runs-on: ubuntu-latest runs-on: ubuntu-latest
uses: ./.gitea/workflows/common_coverage.yml uses: ./.gitea/workflows/common_coverage.yml
Lint: # Lint:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
steps: # steps:
- name: Check out repository code # - name: Check out repository code
uses: actions/checkout@v4 # uses: actions/checkout@v4
- uses: actions/setup-java@v4 # - uses: actions/setup-java@v4
with: # with:
distribution: 'temurin' # distribution: 'temurin'
java-version: '17' # java-version: '17'
cache: gradle # cache: gradle
- name: Install klint # - name: Install klint
run: curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.5.0/ktlint && chmod a+x ktlint && mv ktlint /usr/local/bin/ # run: curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.5.0/ktlint && chmod a+x ktlint && mv ktlint /usr/local/bin/
- name: Install detekt # - name: Install detekt
run: curl -sSLO https://github.com/detekt/detekt/releases/download/v1.23.7/detekt-cli-1.23.7.zip && unzip detekt-cli-1.23.7.zip # run: curl -sSLO https://github.com/detekt/detekt/releases/download/v1.23.7/detekt-cli-1.23.7.zip && unzip detekt-cli-1.23.7.zip
- name: Linting... # - name: Linting...
run: ktlint 'shared/**/*.kt' 'androidApp/**/*.kt' '!shared/build' # run: ktlint 'shared/**/*.kt' 'androidApp/**/*.kt' '!shared/build'
- name: Detecting... # - name: Detecting...
run: ./detekt-cli-1.23.7/bin/detekt-cli -c detekt.yml --excludes '**/shared/build/**/*.kt' # run: ./detekt-cli-1.23.7/bin/detekt-cli -c detekt.yml --excludes '**/shared/build/**/*.kt'
translations: # translations:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
steps: # steps:
- name: Check out repository code # - name: Check out repository code
uses: actions/checkout@v4 # uses: actions/checkout@v4
with: # with:
fetch-depth: 0 # fetch-depth: 0
- name: "Check translations changes" # - name: "Check translations changes"
id: check-translations-changes # id: check-translations-changes
uses: tj-actions/changed-files@v45 # uses: tj-actions/changed-files@v45
with: # with:
files: | # files: |
androidApp/src/main/res/values/strings.xml # androidApp/src/main/res/values/strings.xml
- name: upload translation sources # - name: upload translation sources
if: steps.check-api-changes.outputs.any_modified == 'true' # if: steps.check-api-changes.outputs.any_modified == 'true'
uses: crowdin/github-action@v2 # uses: crowdin/github-action@v2
with: # with:
config: './.gitea/workflows/assets/crowdin.yml' # config: './.gitea/workflows/assets/crowdin.yml'
upload_sources: true # upload_sources: true
upload_translations: false # upload_translations: false
download_translations: false # download_translations: false
create_pull_request: false # create_pull_request: false
push_translations: false # push_translations: false
env: # env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} # CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} # CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
- name: wait # - name: wait
if: steps.check-api-changes.outputs.any_modified == 'true' # if: steps.check-api-changes.outputs.any_modified == 'true'
run: sleep 10s # run: sleep 10s
- name: download translations # - name: download translations
if: steps.check-api-changes.outputs.any_modified == 'true' # if: steps.check-api-changes.outputs.any_modified == 'true'
uses: crowdin/github-action@v2 # uses: crowdin/github-action@v2
with: # with:
config: './.gitea/workflows/assets/crowdin.yml' # config: './.gitea/workflows/assets/crowdin.yml'
upload_sources: false # upload_sources: false
upload_translations: false # upload_translations: false
download_translations: true # download_translations: true
create_pull_request: false # create_pull_request: false
push_translations: false # push_translations: false
env: # env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} # CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} # CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
- name: Check for uncommitted changes # - name: Check for uncommitted changes
if: steps.check-api-changes.outputs.any_modified == 'true' # if: steps.check-api-changes.outputs.any_modified == 'true'
id: check-changes # id: check-changes
uses: mskri/check-uncommitted-changes-action@v1.0.1 # uses: mskri/check-uncommitted-changes-action@v1.0.1
- name: Commit Changes # - name: Commit Changes
if: steps.check-api-changes.outputs.any_modified == 'true' && steps.check-changes.outputs.changes != '' # if: steps.check-api-changes.outputs.any_modified == 'true' && steps.check-changes.outputs.changes != ''
run: | # run: |
git config --global user.email aminecmi+giteadrone@pm.me # git config --global user.email aminecmi+giteadrone@pm.me
git config --global user.name giteadrone # git config --global user.name giteadrone
git add ./androidApp/src/main/res/* # git add ./androidApp/src/main/res/*
git commit -m "translation: translation files" # git commit -m "translation: translation files"
- name: Push changes # - name: Push changes
if: steps.check-api-changes.outputs.any_modified == 'true' && steps.check-changes.outputs.changes != '' # if: steps.check-api-changes.outputs.any_modified == 'true' && steps.check-changes.outputs.changes != ''
uses: appleboy/git-push-action@v1.0.0 # uses: appleboy/git-push-action@v1.0.0
with: # with:
author_name: giteadrone # author_name: giteadrone
author_email: aminecmi+giteadrone@pm.me # author_email: aminecmi+giteadrone@pm.me
remote: ${{ secrets.REMOTE_URL }} # remote: ${{ secrets.REMOTE_URL }}
ssh_key: ${{ secrets.PRIVATE_KEY }} # ssh_key: ${{ secrets.PRIVATE_KEY }}
branch: ${{ github.head_ref || github.ref_name }} # branch: ${{ github.head_ref || github.ref_name }}
build: # build:
needs: Lint # needs: Lint
uses: ./.gitea/workflows/common_build.yml # uses: ./.gitea/workflows/common_build.yml