From 57a3bb51a62a6caf2b474f3f3e021aeba284dde0 Mon Sep 17 00:00:00 2001 From: Pedro Lopes Date: Fri, 15 Oct 2021 09:45:25 +0100 Subject: [PATCH] update pom version and add maven cache --- .github/workflows/ci.yml | 8 ++++++++ .github/workflows/release.yml | 8 -------- pom.xml | 3 ++- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d53a543..9434235 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,14 @@ jobs: with: java-version: 8 + - name: Cache local Maven repository + uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + - name: Run tests with Maven env: CX_CLIENT_ID: ${{ secrets.CLIENT_ID}} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 56e2a34..cda59b6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,14 +39,6 @@ jobs: - name: Update the POM version. run: mvn -B versions:set -DnewVersion='${{ env.RELEASE_VERSION }}' --file pom.xml -DskipTests - - name: Commit pom change version - run: | - git config user.name github-actions - git config user.email github-actions@github.com - git add pom.xml - git commit -m '[auto-release] Update pom version' - git push - - name: Publish package run: mvn --batch-mode deploy -DskipTests env: diff --git a/pom.xml b/pom.xml index 2195fad..20a163c 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.checkmarx.ast ast-cli-java-wrapper - 1.0.17 + ${ast.wrapper.version} jar Checkmarx AST Client @@ -13,6 +13,7 @@ https://www.checkmarx.com + dev 8 8