Skip to content

Bump org.mockito:mockito-core from 5.13.0 to 5.14.1 #430

Bump org.mockito:mockito-core from 5.13.0 to 5.14.1

Bump org.mockito:mockito-core from 5.13.0 to 5.14.1 #430

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
# Build the agent once and store it as an artifact for subsequent integration tests. This is close to how it works
# in production, where the agent is built once and used across all OpenJDK versions.
build-agent:
name: "Build and verify"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 11
- run: "./mvnw --batch-mode clean verify package"
- uses: actions/upload-artifact@v4
with:
name: agent-jar
path: target/heroku-java-metrics-agent.jar
integration-test:
name: "Integration Test (Java ${{ matrix.java-version }}, GC: ${{ matrix.gc }})"
runs-on: ubuntu-24.04
needs: build-agent
strategy:
matrix:
# These are all currently available OpenJDK versions on Heroku. Update this to reflect available versions:
# https://devcenter.heroku.com/articles/java-support#supported-java-versions
java-version:
- 7
- 8
- 11
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
gc:
- parallel
- g1
# CMS GC is only supported in OpenJDK <= 13
include:
- java-version: 7
gc: cms
- java-version: 8
gc: cms
- java-version: 11
gc: cms
- java-version: 13
gc: cms
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: ${{ matrix.java-version }}
- name: Update Rust toolchain
run: rustup update
- name: Rust Cache
uses: Swatinem/[email protected]
with:
workspaces: "./integration-test"
- uses: actions/download-artifact@v4
with:
name: agent-jar
- name: Run integration tests
run: cargo run -- "../heroku-java-metrics-agent.jar" "${{ matrix.gc }}" "9876"
working-directory: integration-test
rust-lint:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update Rust toolchain
run: rustup update
- name: Rust Cache
uses: Swatinem/[email protected]
with:
workspaces: "./integration-test"
- name: Clippy
run: cargo clippy --all-targets --all-features -- --deny warnings
working-directory: integration-test
- name: rustfmt
run: cargo fmt -- --check
working-directory: integration-test