-
Notifications
You must be signed in to change notification settings - Fork 7
DEVX-1869: Migrate CircleCI to GA #299
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
Open
DmytroDm
wants to merge
21
commits into
development
Choose a base branch
from
feautre/DEVX-1869
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
ff7b808
Add basic GA setup
DmytroDm a3a5f13
Add submodules support
DmytroDm db0e462
Add detekt & unit tests step
DmytroDm 5a24f10
Restore gradle to speed up job
DmytroDm d2a216b
Upload & publish test results
DmytroDm 20b5dfe
Update detekt step config
DmytroDm 9680207
Start deamon manually
DmytroDm ef88cca
Update demon step
DmytroDm f95acc0
Update config
DmytroDm 5d37ac7
Update unit tests config
DmytroDm 7849a32
Add setup local variables step
DmytroDm 4ca599a
Complete Unit tests. Implement UI tests
DmytroDm ff29f72
Add setup action
DmytroDm 41447b0
Remove circle ci config yaml
DmytroDm e64c9e8
Implement Publish code coverage step
DmytroDm 2031132
Revert debug changes
DmytroDm 0f87d24
Comment Publish code coverage step
DmytroDm b139325
Remove redundant comments
DmytroDm 7c96476
Update runs on
DmytroDm d0c5eff
Update compass code coverage steps
DmytroDm abd6d92
Merge branch 'development' into feautre/DEVX-1869
DmytroDm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Setup JDK 17 | ||
| uses: actions/setup-java@v5 | ||
| with: | ||
| distribution: temurin | ||
| java-version: 17 | ||
|
|
||
| - name: Setup Android SDK | ||
| uses: android-actions/setup-android@v3 | ||
|
|
||
| - name: Cache Gradle | ||
| uses: actions/cache@v3 | ||
| with: | ||
| path: | | ||
| ~/.gradle/caches | ||
| ~/.gradle/wrapper/dists | ||
| key: gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
| restore-keys: gradle- | ||
|
|
||
| - name: Setup local variables | ||
| shell: bash | ||
| run: echo "VGS_VAULT_ID=$VGS_VAULT_ID" >> local.properties |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,114 @@ | ||
| --- | ||
| name: 'CI' | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - 'main' | ||
| tags: | ||
| - 'v*' | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
| checks: write # For publishing test results | ||
|
|
||
| jobs: | ||
| run-unit-tests: | ||
| name: 'Run Unit Tests' | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| submodules: true | ||
|
|
||
| - name: Setup environment | ||
| uses: ./.github/actions/setup | ||
| env: | ||
| VGS_VAULT_ID: ${{ secrets.VGS_VAULT_ID }} | ||
|
|
||
| - name: Run Detekt | ||
| run: ./gradlew vgsshow:detekt --continue | ||
|
|
||
| - name: Run Unit Tests | ||
| run: ./gradlew vgsshow:testDebugUnitTest --continue | ||
|
|
||
| - name: (Compass) Generate Code Coverage Report | ||
| id: coverage | ||
| if: github.ref == 'refs/heads/main' | ||
| run: | | ||
| ./gradlew vgsshow:koverHtmlReportDebug | ||
|
|
||
| COVERAGE=$(sed -n '51p' vgsshow/build/reports/kover/htmlDebug/index.html) | ||
DmytroDm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| METRIC_VALUE=`echo ${COVERAGE//[[:space:]]/} | sed 's/.$//'` | ||
|
|
||
| echo "metric_value=$METRIC_VALUE" >> $GITHUB_OUTPUT | ||
|
|
||
| # - name: (Compass) Publish code coverage | ||
| # if: github.ref == 'refs/heads/main' | ||
| # uses: verygood-ops/cicd-shared/.github/actions/[email protected] | ||
| # with: | ||
| # metric_source_id: 'ari:cloud:compass:83673fa7-fd28-4f4a-9738-f584064570a7:component/db43f86d-85fe-42e1-954d-457f5a4082b8/444114a1-5d6c-4c2e-96c6-5895cd094e6a' | ||
| # metric_value: ${{ steps.coverage.outputs.metric_value }} | ||
| # api_key: ${{ secrets.COMPASS_API_KEY }} | ||
|
|
||
| - name: Upload Test Results | ||
| uses: actions/upload-artifact@v4 | ||
| if: ${{ !cancelled() }} | ||
| with: | ||
| name: unit-test-results | ||
| path: | | ||
| **/build/test-results/**/*.xml | ||
| **/build/reports/** | ||
| retention-days: 30 | ||
|
|
||
| - name: Publish Test Report | ||
| uses: mikepenz/action-junit-report@v4 | ||
| if: ${{ !cancelled() }} | ||
| with: | ||
| report_paths: '**/build/test-results/**/TEST-*.xml' | ||
| check_name: 'Unit Test Results' | ||
| fail_on_failure: true | ||
|
|
||
| run-ui-tests: | ||
| name: 'Run UI Tests' | ||
| runs-on: ubuntu-latest | ||
| if: ${{ startsWith(github.head_ref, 'release/') }} | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| submodules: true | ||
|
|
||
| - name: Setup environment | ||
| uses: ./.github/actions/setup | ||
| env: | ||
| VGS_VAULT_ID: ${{ secrets.VGS_VAULT_ID }} | ||
|
|
||
| - name: Auth Google Cloud SDK | ||
| uses: google-github-actions/auth@v2 | ||
| with: | ||
| credentials_json: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_KEY }} | ||
|
|
||
| - name: Set up Google Cloud SDK | ||
| uses: google-github-actions/setup-gcloud@v3 | ||
|
|
||
| - name: Assemble debug & test APK | ||
| run: ./gradlew assembleDebug assembleAndroidTest | ||
|
|
||
| - name: Run UI tests | ||
| run: | | ||
| gcloud firebase test android run \ | ||
| --type instrumentation \ | ||
| --app app/build/outputs/apk/debug/app-debug.apk \ | ||
| --test app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk \ | ||
| --device model=oriole,version=31,locale=en,orientation=portrait \ | ||
| --device model=blazer,version=36,locale=en,orientation=portrait | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.