From 49b1d325b8d453c71ab9cdb53fd39432487e64d3 Mon Sep 17 00:00:00 2001 From: Luis <1105281+lpenap@users.noreply.github.com> Date: Wed, 16 Sep 2026 12:37:52 -0300 Subject: [PATCH] Clean up README badges and add CircleCI config Align the badge set with java-monitor-example: CircleCI, Build, GitHub release, Coverage and Branches. Drop the codebeat badge and its ignore file, and add a CircleCI pipeline running mvn verify on cimg/openjdk:25.0. Co-Authored-By: Claude Fable 5.1 --- .circleci/config.yml | 26 ++++++++++++++++++++++++++ .codebeatignore | 2 -- README.md | 5 +++-- 3 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 .circleci/config.yml delete mode 100644 .codebeatignore diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..4c8a2f2 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,26 @@ +version: 2.1 +jobs: + test-java: + docker: + - image: cimg/openjdk:25.0 + steps: + - checkout + - run: + name: Calculate cache key + command: |- + find . -name 'pom.xml' -o -name 'gradlew*' -o -name '*.gradle*' | \ + sort | xargs cat > /tmp/CIRCLECI_CACHE_KEY + - restore_cache: + key: cache-{{ checksum "/tmp/CIRCLECI_CACHE_KEY" }} + - run: + command: mvn verify + - store_test_results: + path: target/surefire-reports + - save_cache: + key: cache-{{ checksum "/tmp/CIRCLECI_CACHE_KEY" }} + paths: + - ~/.m2/repository +workflows: + build-and-test: + jobs: + - test-java diff --git a/.codebeatignore b/.codebeatignore deleted file mode 100644 index 44b2402..0000000 --- a/.codebeatignore +++ /dev/null @@ -1,2 +0,0 @@ -src/main/java/com/penapereira/example/constructs/app/properties/* -.mvn/wrapper/* diff --git a/README.md b/README.md index dba867e..930a336 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ -[![maven build](https://github.com/lpenap/java-patterns-and-constructs/actions/workflows/merged_master.yml/badge.svg)](https://github.com/lpenap/java-patterns-and-constructs/actions/workflows/merged_master.yml) +[![CircleCI](https://dl.circleci.com/status-badge/img/gh/lpenap/java-patterns-and-constructs/tree/master.svg?style=shield)](https://dl.circleci.com/status-badge/redirect/gh/lpenap/java-patterns-and-constructs/tree/master) +[![Build](https://github.com/lpenap/java-patterns-and-constructs/actions/workflows/merged_master.yml/badge.svg)](https://github.com/lpenap/java-patterns-and-constructs/actions/workflows/merged_master.yml) [![GitHub release](https://img.shields.io/github/release/lpenap/java-patterns-and-constructs)](//github.com/lpenap/java-patterns-and-constructs/releases/latest) -[![codebeat badge](https://codebeat.co/badges/4c328c5d-1722-459f-aaa1-437a0ed6201f)](https://codebeat.co/projects/github-com-lpenap-java-patterns-and-constructs-master) ![Coverage](.github/badges/jacoco.svg) +![Branches](.github/badges/branches.svg) # Java Design Patterns and Constructs Collection of patterns and other constructs in Java for educational purposes. (See *Contributing* section if you would like to contribute).