Skip to content

fix(deps): update junit-framework monorepo to v6.0.3 (#539) #108

fix(deps): update junit-framework monorepo to v6.0.3 (#539)

fix(deps): update junit-framework monorepo to v6.0.3 (#539) #108

Workflow file for this run

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: JMH Benchmarks
on:
workflow_dispatch:
push:
branches:
- main
permissions: read-all
env:
MAVEN_OPTS: -Xmx2g -Xms1g
LANG: en_US.utf8
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6.0.2
- name: Set up cache
uses: actions/cache@v5.0.3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
- name: Build with Maven
run: ./mvnw -B package -DskipTests
- name: Run benchmarks with Maven
env:
OPTIONS: publishSummary
run: |
echo '### Benchmarks summary 🚀' >> $GITHUB_STEP_SUMMARY
./mvnw -B verify -Pbenchmarks -DskipTests
- name: Upload JMH results
uses: actions/upload-artifact@v6
with:
name: jmh-results
path: benchmarks/target/ognl-runtime-benchmark-results.json