From e36cf88ed37ad1868cd218518b0b9c75c6c0118e Mon Sep 17 00:00:00 2001 From: Hantsy Bai Date: Wed, 4 May 2022 10:54:20 +0800 Subject: [PATCH] chore: Update Circle config to new Orb (#16) --- .circleci/config.yml | 36 +++++++++--------------------------- 1 file changed, 9 insertions(+), 27 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index dd27773..3bf8a32 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,30 +1,12 @@ -version: 2.1 -jobs: - build: - parameters: - jdk-version: - type: string - working_directory: ~/circleci-arquillian-container-glassfish-jakarta +executors: + java11: docker: - - image: circleci/openjdk:<< parameters.jdk-version >> - steps: - - checkout - - restore_cache: - key: circleci-arquillian-container-glassfish-jakarta-{{ checksum "pom.xml" }} - - run: ./mvnw verify -q -U -DskipTests # pre-fetch dependencies (dependency:resolve fails) - - run: ./mvnw verify - - store_test_results: - path: target/surefire-reports - - save_cache: - paths: - - ~/.m2 - key: circleci-arquillian-container-glassfish-jakarta-{{ checksum "pom.xml" }} - + - image: 'cimg/openjdk:11.0' +orbs: + maven: circleci/maven@1.3.0 +version: 2.1 workflows: - version: 2.1 - circleci_build: + maven_test: jobs: - - build: - matrix: - parameters: - jdk-version: ["8", "11"] + - maven/test: + executor: java11