Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ jobs:
with:
java-version: ${{ matrix.jdk }}
- name: Cache Maven packages
uses: actions/cache@v1
uses: actions/cache@v4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

⚠️ Other actions need version updates too

The workflow is using outdated versions of multiple actions that have significant updates available:

  • actions/checkout@v2 → v4.2.2 available
  • actions/setup-java@v1 → v4.5.0 available
  • codecov/codecov-action@v1 → v5.1.1 available

While upgrading actions/cache is good, these other actions should also be updated to their latest versions for improved features, security, and long-term maintainability.

🔗 Analysis chain

LGTM! Consider updating other actions too.

The upgrade to actions/cache@v4 is appropriate and addresses the upcoming v1 deprecation.

Let's check if other actions in the workflow could also benefit from version updates:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check latest versions of GitHub Actions used in the workflow

# Check latest versions for actions used in the workflow
for action in "actions/checkout" "actions/setup-java" "codecov/codecov-action"; do
  echo "Checking $action..."
  gh api repos/$action/releases/latest --jq .tag_name
done

Length of output: 677


Script:

#!/bin/bash
# Check current versions used in the workflow
rg "uses: (actions/checkout|actions/setup-java|codecov/codecov-action)@" .github/workflows/build.yml

Length of output: 206

with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: JDK 8
if: matrix.jdk == '8'
run: mvn -B clean package -P travis jacoco:report -Dmaven.gitcommitid.skip=true
Expand Down
Loading