Skip to content

build(deps): bump org.springframework:spring-framework-bom from 6.1.13 to 6.2.0 #229

build(deps): bump org.springframework:spring-framework-bom from 6.1.13 to 6.2.0

build(deps): bump org.springframework:spring-framework-bom from 6.1.13 to 6.2.0 #229

Workflow file for this run

name: Build
on:
push:
branches:
- '**'
pull_request:
branches: [ main ]
jobs:
build:
name: "Main build"
runs-on: ubuntu-latest
outputs:
candidate_version_revision: ${{ steps.candidate_version.outputs.candidate_version_revision }}
steps:
- uses: actions/checkout@v4
- name: Setup java
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-maven-
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Retrieve current version
id: current_version
run: echo "project_version=$(./mvnw help:evaluate -Dexpression=project.version -Dchangelist= -q -DforceStdout)" >> "$GITHUB_OUTPUT"
- name: Compute release candidate revision version
id: candidate_version
run: echo "candidate_version_revision=${{ steps.current_version.outputs.project_version }}.$GITHUB_RUN_ID" >> "$GITHUB_OUTPUT"
- name: Build candidate version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./mvnw -B clean install -Drevision=${{ steps.candidate_version.outputs.candidate_version_revision }} -Dchangelist=-rc org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=f-lopes_spring-mvc-test-utils
- name: Upload JaCoCo coverage reports to Codecov
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
smoke-tests:
name: "Run smoke tests with Java ${{ matrix.java }} for spring-mvc-test-utils ${{ needs.build.outputs.candidate_version_revision }}-rc version"
strategy:
matrix:
java: [ 17, 21 ]
runs-on: ubuntu-latest
needs: build
env:
candidate_version_revision: ${{ needs.build.outputs.candidate_version_revision }}
steps:
- uses: actions/checkout@v4
- name: Setup java ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-maven-
- name: Run smoke tests with Java ${{ matrix.java }} for spring-mvc-test-utils ${{ needs.build.outputs.candidate_version_revision }}-rc version
run: ./mvnw -B -Psmoke-tests -Dspring-mvc-test-utils.version=${candidate_version_revision}-rc -Djava.version=${{ matrix.java }} clean verify