Skip to content

build(deps): Bump org.openrewrite.recipe:rewrite-testing-frameworks from 2.18.0 to 2.23.0 #73

build(deps): Bump org.openrewrite.recipe:rewrite-testing-frameworks from 2.18.0 to 2.23.0

build(deps): Bump org.openrewrite.recipe:rewrite-testing-frameworks from 2.18.0 to 2.23.0 #73

name: Build and Test - Temurin JDK - Linux
on:
push:
branches: [ master ]
paths-ignore:
- 'docs/**'
pull_request:
branches: [ master ]
paths-ignore:
- 'docs/**'
jobs:
prepare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- name: Prepare artifacts
uses: actions/cache@v4
env:
cache-name: build-maven-repository
with:
path: ~/.m2/repository
key: ${{ env.cache-name }}-${{ github.sha }}-${{ github.run_id }}
- name: Prepare Build
shell: bash
run: ./ci-support/prepare-build.sh
build:
needs: prepare
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- name: Cache build artifacts
uses: actions/cache@v4
env:
cache-name: build-maven-repository
with:
path: ~/.m2/repository
key: ${{ env.cache-name }}-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }}
restore-keys: |
${{ env.cache-name }}-${{ github.sha }}-${{ github.run_id }}
- name: Build with Maven
shell: bash
run: ./ci-support/build.sh
submit-maven-dependencies:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- name: Cache build artifacts
uses: actions/cache@v4
env:
cache-name: build-maven-repository
with:
path: ~/.m2/repository
key: ${{ env.cache-name }}-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }}
restore-keys: |
${{ env.cache-name }}-${{ github.sha }}-${{ github.run_id }}
- name: Submit Dependency Snapshot
uses: advanced-security/maven-dependency-submission-action@v4
with:
settings-file: .github/mvn-settings.xml
maven-args: "-V -B"
test-weld:
needs: build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# LTS versions
java: [11, 17, 21]
weld:
- v4.0
- v5.0
- v5.1
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: Restore build artifacts
uses: actions/cache@v4
env:
cache-name: build-maven-repository
with:
path: ~/.m2/repository
key: ${{ env.cache-name }}-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }}
restore-keys: |
${{ env.cache-name }}-${{ github.sha }}-${{ github.run_id }}
${{ env.cache-name }}-${{ github.sha }}
- name: Test Weld ${{ matrix.weld }}
shell: bash
run: ./ci-support/test-weld.sh weld-${{ matrix.weld }}.sh
- name: Upload failure Archive (if maven failed)
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-reports-jdk${{ matrix.java }}-weld${{ matrix.weld }}
path: '**/target/surefire-reports/**'
test-deltaspike:
needs: build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# LTS versions
java: [11, 17, 21]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: Restore build artifacts
uses: actions/cache@v4
env:
cache-name: build-maven-repository
with:
path: ~/.m2/repository
key: ${{ env.cache-name }}-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }}
restore-keys: |
${{ env.cache-name }}-${{ github.sha }}-${{ github.run_id }}
${{ env.cache-name }}-${{ github.sha }}
- name: Test DeltaSpike
shell: bash
run: ./ci-support/test-deltaspike.sh deltaspike-v2.x.sh
- name: Upload failure Archive (if maven failed)
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-reports-jdk${{ matrix.java }}-deltaspike
path: '**/target/surefire-reports/**'
test-spock:
needs: build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# LTS versions
java: [11, 17, 21]
groovy:
# FIXME - #330 - v2.5
- v3.0
- v4.0
include:
- java: 11
groovy: v2.5
- java: 17
groovy: v2.5
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: Restore build artifacts
uses: actions/cache@v4
env:
cache-name: build-maven-repository
with:
path: ~/.m2/repository
key: ${{ env.cache-name }}-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }}
restore-keys: |
${{ env.cache-name }}-${{ github.sha }}-${{ github.run_id }}
${{ env.cache-name }}-${{ github.sha }}
- name: Test Spock with Groovy ${{ matrix.groovy }}
shell: bash
run: ./ci-support/test-spock.sh groovy-${{ matrix.groovy }}.sh
- name: Upload failure Archive (if maven failed)
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-reports-jdk${{ matrix.java }}-groovy${{ matrix.groovy }}
path: '**/target/surefire-reports/**'