Skip to content

Bump @types/jest from 29.5.4 to 29.5.9 #593

Bump @types/jest from 29.5.4 to 29.5.9

Bump @types/jest from 29.5.4 to 29.5.9 #593

name: "Test: Maven Project"
on:
pull_request:
push:
branches:
- main
- 'releases/*'
# Avoid running the same workflow on the same branch concurrently
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
Test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
steps:
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'zulu'
- name: Checkout
uses: actions/checkout@v4
with:
# The default GITHUB_TOKEN doesn't have the necessary permissions
# so a custom token should be used here with sufficient access.
token: ${{ secrets.DIFFBLUE_TOKEN }}
# By default the merge commit is checked out, but here we want
# the HEAD SHA in preparation for adding commits to the branch.
ref: ${{ github.event.pull_request.head.sha }}
- name: Prepare Git Author
# Diffblue Cover requires author name and email to be configured.
# This allows adding new commits, and detecting previous automated commits.
run: |
git config user.name "Diffblue CI"
git config user.email "[email protected]"
- name: Prepare Git Patch
# Adding commits to the pull requst requires an author name and email address.
if: github.event_name == 'pull_request'
run: |
mkdir .diffblue
git fetch origin ${{ github.event.pull_request.base.ref }} --depth 100
git fetch origin ${{ github.event.pull_request.head.ref }} --depth 100
git diff --merge-base origin/${{ github.base_ref }} > .diffblue/cover-github-action.diff
- name: Maven Install
working-directory: ./test/maven-project
run: mvn --batch-mode install
- name: Diffblue Cover
uses: ./
env:
GITHUB_TOKEN: ${{ secrets.DIFFBLUE_TOKEN }}
JVM_ARGS: -Xmx4096m
with:
# License key used to activate the installation
license-key: ${{ secrets.DIFFBLUE_LICENSE_KEY }}
# Integration test project lives in a subdir
working-directory: ./test/maven-project
# A patch file representing the pull request changes
patch: .diffblue/cover-github-action.diff
# Add a differentiator based on the matrix
topic-id-differentiator: ${{ matrix.os }}