diff --git a/.github/workflows/cd-deploy.yml b/.github/workflows/cd-deploy.yml index 9806012..4c987ab 100644 --- a/.github/workflows/cd-deploy.yml +++ b/.github/workflows/cd-deploy.yml @@ -14,10 +14,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Set up JDK - uses: actions/setup-java@v4 + uses: actions/setup-java@v5 with: java-version: 8 distribution: 'corretto' @@ -27,7 +27,7 @@ jobs: gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} - name: Cache Maven packages - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ~/.m2 key: ${{ runner.os }}-deploy-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/cd-integration.yml b/.github/workflows/cd-integration.yml index dd77edb..a386c03 100644 --- a/.github/workflows/cd-integration.yml +++ b/.github/workflows/cd-integration.yml @@ -20,10 +20,10 @@ jobs: target-branch: ${{ steps.environment.outputs.target-branch }} steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Set up JDK - uses: actions/setup-java@v4 + uses: actions/setup-java@v5 with: java-version: 17 distribution: "corretto" diff --git a/.github/workflows/ci-gates.yml b/.github/workflows/ci-gates.yml index 8a8208a..9b772c4 100644 --- a/.github/workflows/ci-gates.yml +++ b/.github/workflows/ci-gates.yml @@ -9,19 +9,19 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Set up JDK 17 - uses: actions/setup-java@v4 + uses: actions/setup-java@v5 with: java-version: 17 distribution: "corretto" cache: "maven" - name: Cache Maven packages - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | ~/.sonar/cache diff --git a/.github/workflows/ci-maven.yml b/.github/workflows/ci-maven.yml index d39943c..d1c2ef3 100644 --- a/.github/workflows/ci-maven.yml +++ b/.github/workflows/ci-maven.yml @@ -11,17 +11,17 @@ jobs: java-version: [8, 11, 17, 21] steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Set up JDK - uses: actions/setup-java@v4 + uses: actions/setup-java@v5 with: java-version: ${{ matrix.java-version }} distribution: "corretto" cache: "maven" - name: Cache Maven packages - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ~/.m2 key: ${{ runner.os }}-build-${{ hashFiles('**/pom.xml') }}-${{ matrix.java-version }} @@ -37,17 +37,17 @@ jobs: java-version: [8, 11, 17, 21] steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Set up JDK - uses: actions/setup-java@v4 + uses: actions/setup-java@v5 with: java-version: ${{ matrix.java-version }} distribution: "corretto" cache: "maven" - name: Cache Maven packages - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ~/.m2 key: ${{ runner.os }}-test-${{ hashFiles('**/pom.xml') }}-${{ matrix.java-version }} diff --git a/.github/workflows/ci-pull-request.yml b/.github/workflows/ci-pull-request.yml index 59d6c21..1d9e908 100644 --- a/.github/workflows/ci-pull-request.yml +++ b/.github/workflows/ci-pull-request.yml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Create branch run: | @@ -57,7 +57,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create Pull Request (${{ inputs.type }}) - uses: peter-evans/create-pull-request@v7 + uses: peter-evans/create-pull-request@v8 with: title: Auto-created pull request into `${{ inputs.target-branch }}` from `${{ github.ref_name }}` token: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 505838c..3fe889c 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,10 @@ # Java Fluent Validator -[![Java CI with Maven](https://github.com/mvallim/java-fluent-validator/actions/workflows/ci.yml/badge.svg)](https://github.com/mvallim/java-fluent-validator/actions/workflows/ci.yml) +[![Build, Publish Snapshot and Pull Request](https://github.com/mvallim/java-fluent-validator/actions/workflows/cd-snapshot.yml/badge.svg)](https://github.com/mvallim/java-fluent-validator/actions/workflows/cd-snapshot.yml) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=java-fluent-validator&metric=alert_status)](https://sonarcloud.io/dashboard?id=java-fluent-validator) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=java-fluent-validator&metric=coverage)](https://sonarcloud.io/dashboard?id=java-fluent-validator) -[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.mvallim/java-fluent-validator/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.mvallim/java-fluent-validator) +[![Maven Central](https://img.shields.io/maven-central/v/com.github.mvallim/java-fluent-validator)](https://img.shields.io/maven-central/v/com.github.mvallim/java-fluent-validator) [![Hex.pm](https://img.shields.io/hexpm/l/plug.svg)](http://www.apache.org/licenses/LICENSE-2.0) Validating data is a common task that occurs throughout any application, especially the business logic layer. As for some quite complex scenarios, often the same or similar validations are scattered everywhere, thus it is hard to reuse code and break the [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself) rule. diff --git a/pom.xml b/pom.xml index 7107361..4260ea7 100644 --- a/pom.xml +++ b/pom.xml @@ -47,9 +47,9 @@ - scm:git:https://github.com:mvallim/java-fluent-validator.git - scm:git:https://ithub.com:mvallim/java-fluent-validator.git - scm:git:https://github.com:mvallim/java-fluent-validator.git + scm:git:https://github.com/mvallim/java-fluent-validator.git + scm:git:https://ithub.com/mvallim/java-fluent-validator.git + scm:git:https://github.com/mvallim/java-fluent-validator.git HEAD