Skip to content

build(deps): Bump org.openrewrite.recipe:rewrite-static-analysis from 1.16.0 to 1.21.1 #98

build(deps): Bump org.openrewrite.recipe:rewrite-static-analysis from 1.16.0 to 1.21.1

build(deps): Bump org.openrewrite.recipe:rewrite-static-analysis from 1.16.0 to 1.21.1 #98

name: Build and Test - Zulu 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: 'zulu'
- 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: 'zulu'
- 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
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: 'zulu'
- 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: Prepare failure archive (if maven failed)
if: failure()
shell: bash
run: find . -name '*-reports' -type d | tar -czf test-reports.tgz -T -
- name: Upload failure Archive (if maven failed)
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-reports-jdk${{ matrix.java }}-weld${{ matrix.weld }}.tgz
path: 'test-reports.tgz'
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: 'zulu'
- 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: Prepare failure archive (if maven failed)
if: failure()
shell: bash
run: find . -name '*-reports' -type d | tar -czf test-reports.tgz -T -
- name: Upload failure Archive (if maven failed)
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-reports-jdk${{ matrix.java }}-deltaspike.tgz
path: 'test-reports.tgz'
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: 'zulu'
- 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: Prepare failure archive (if maven failed)
if: failure()
shell: bash
run: find . -name '*-reports' -type d | tar -czf test-reports.tgz -T -
- name: Upload failure Archive (if maven failed)
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-reports-jdk${{ matrix.java }}-groovy${{ matrix.groovy }}.tgz
path: 'test-reports.tgz'