Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 99 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
version: 2.1
orbs:
mvn: lsk/mvn@1.3

anchors:
run-on-semver-tags: &run-on-semver-tags
filters:
tags:
only: /^[0-9]+[.][0-9]+[.][0-9]+(-.*)*$/

jobs:
build:
executor: mvn/java-11
resource_class: xlarge
steps:
- checkout
- restore_cache:
keys:
- gradle-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}-{{ checksum "settings.gradle.kts" }}-{{ .Branch }}
- gradle-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}-{{ checksum "settings.gradle.kts" }}
- gradle-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}
- run:
name: Build
command: ./gradlew clean assemble --no-daemon --parallel
- save_cache:
paths:
- ~/.gradle/caches
- ~/.gradle/wrapper
key: gradle-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}-{{ checksum "settings.gradle.kts" }}-{{ .Branch }}-{{ .Revision }}
- persist_to_workspace:
root: .
paths:
- "*/build"
- "*/*/build"
- "*/*/*/build"
- "*/*/*/*/build"

test:
executor: mvn/java-11
resource_class: xlarge
steps:
- checkout
- attach_workspace:
at: .
- restore_cache:
keys:
- gradle-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}-{{ checksum "settings.gradle.kts" }}-{{ .Branch }}
- gradle-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}-{{ checksum "settings.gradle.kts" }}
- run:
name: Test
command: ./gradlew test --no-daemon --parallel
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -name "TEST-*.xml" -path "*/build/test-results/*" -exec cp {} ~/test-results/junit/ \;
when: always
- store_test_results:
path: ~/test-results
- store_artifacts:
path: ~/test-results/junit

publish:
executor: mvn/java-11
resource_class: xlarge
steps:
- checkout
- attach_workspace:
at: .
- restore_cache:
keys:
- gradle-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}-{{ checksum "settings.gradle.kts" }}-{{ .Branch }}
- gradle-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}-{{ checksum "settings.gradle.kts" }}
- run:
name: Publish to GitHub Packages
command: ./gradlew publish --no-daemon

workflows:
version: 2
workflow:
jobs:
- build:
context: global
<<: *run-on-semver-tags
- test:
context: global
requires:
- build
<<: *run-on-semver-tags
- publish:
context: global
requires:
- test
<<: *run-on-semver-tags
filters:
tags:
only: /^[0-9]+[.][0-9]+[.][0-9]+(-.*)*$/
branches:
ignore: /.*/
200 changes: 0 additions & 200 deletions .github/workflows/README.md

This file was deleted.

86 changes: 0 additions & 86 deletions .github/workflows/add-milestone-to-pull-requests.yaml

This file was deleted.

Loading