Skip to content

Commit

Permalink
add a workflow definition
Browse files Browse the repository at this point in the history
  • Loading branch information
beekhc committed Sep 26, 2024
1 parent 3711765 commit 804a9c1
Showing 1 changed file with 32 additions and 10 deletions.
42 changes: 32 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ orbs:
android: circleci/[email protected]

jobs:
unit-test:
unit_test:
executor:
name: android/android-machine
resource-class: large
Expand All @@ -16,7 +16,7 @@ jobs:
- android/run-tests:
test-command: ./gradlew testDebug
- android/save-gradle-cache
android-test:
android_test:
executor:
name: android/android-machine
resource-class: large
Expand All @@ -25,7 +25,7 @@ jobs:
- checkout
- android/start-emulator-and-run-tests:
system-image: system-images;android-30;google_apis;x86
release-build:
release_build:
executor:
name: android/android-machine
resource-class: large
Expand All @@ -46,13 +46,35 @@ jobs:
tag: default
steps:
- checkout
- gradle/with_cache:
steps:
- run:
name: "Publish Artifacts to Maven"
command: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
- run:
name: "Publish Artifacts to Maven"
command: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository

filters_main_only: &filters_main_only
filters:
tags:
only: /.*/
branches:
only: main

filters_tags_only: &filters_tags_only
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/

workflows:
build:
jobs:
- android_test
# - release-build
- publish_maven:
<<: *filters_tags_only
context:
- java_beeline
requires:
- android_test
test:
triggers:
- schedule:
Expand All @@ -62,6 +84,6 @@ workflows:
only:
- main
jobs:
- unit-test
- android-test
- unit_test
- android_test

0 comments on commit 804a9c1

Please sign in to comment.