Skip to content

Issue #17168: Upgrade Azure CI to jdk17 #17

Issue #17168: Upgrade Azure CI to jdk17

Issue #17168: Upgrade Azure CI to jdk17 #17

#####################################################################################
# GitHub Action to test performance regression.
#
# Workflow starts when:
# 1) push to master
# 2) PR created or pushed
#
#####################################################################################
name: Check-Performance-Regression
on:
push:
branches:
- master
pull_request:
branches: '*'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
if: github.repository == 'checkstyle/checkstyle'
strategy:
matrix:
target:
- java
- javadoc
include:
- target: java
BASELINE_SECONDS: 390.70
CONFIG_FILE: './config/benchmark-config.xml'
- target: javadoc
BASELINE_SECONDS: 424.59
CONFIG_FILE: './config/benchmark-javadoc-config.xml'
runs-on: ubuntu-latest
env:
BASELINE_SECONDS: ${{ matrix.BASELINE_SECONDS }}
CONFIG_FILE: ${{ matrix.CONFIG_FILE }}
steps:
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- name: Checkout Pull Request Code
uses: actions/checkout@v4
- name: Clone JDK 21 Repo
uses: actions/checkout@v4
with:
repository: openjdk/jdk21
path: ./.ci-temp/jdk21
- name: Setup local maven cache
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: checkstyle-maven-cache-${{ hashFiles('**/pom.xml') }}
- name: Run performance test
run: |
./.ci/check-performance-regression.sh "$BASELINE_SECONDS" "$CONFIG_FILE"