mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
37 lines
1.3 KiB
YAML
37 lines
1.3 KiB
YAML
version: 2.1
|
|
|
|
executors:
|
|
java17:
|
|
docker:
|
|
- image: 'cimg/openjdk:17.0'
|
|
|
|
orbs:
|
|
maven: circleci/maven@1.3.0
|
|
|
|
workflows:
|
|
main:
|
|
jobs:
|
|
##############################################################################
|
|
## Job (from maven orb) to test the codebase. Should run for all branches. ##
|
|
##############################################################################
|
|
- maven/test:
|
|
name: run_tests
|
|
executor: java17
|
|
filters:
|
|
branches:
|
|
ignore: circleci-project-setup ## todo - change to main
|
|
|
|
#############################################################################################
|
|
## Job (from maven orb) to do a mvn deploy to publish jar to github qqq-maven-registry. ##
|
|
## Note: despite "/test" in the name, we specify the mvn sub-command w/ the command param. ##
|
|
#############################################################################################
|
|
- maven/test:
|
|
name: deploy_to_github
|
|
executor: java17
|
|
command: deploy
|
|
settings_file: .circleci/mvn-settings.xml
|
|
context: qqq-maven-registry-credentials
|
|
filters:
|
|
branches:
|
|
only: circleci-project-setup ## todo - change to main
|