Skip to content

[CONFIG] [Github Actions] java versions #316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 16, 2025
Merged
Show file tree
Hide file tree
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: 8 additions & 1 deletion .github/workflows/java-gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
strategy:
matrix:
os: ["windows-2022", "ubuntu-24.04", "macos-14"]
java: ['20', '21', '22']
java: ['22', '23', '24']
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -39,6 +39,13 @@ jobs:
java-version: ${{ matrix.java }}
distribution: temurin

- name: Tool test
run: |
echo "Java version: ${{ matrix.java }}"
java -version
echo "OS: ${{ matrix.os }}"
echo "Gradle version:"
./gradlew --version
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Algorithm Exercises (Java 20)
# Algorithm Exercises (Java 22, 23, 24)

[![Java with Gradle](https://github.com/sir-gon/algorithm-exercises-java/actions/workflows/java-gradle.yml/badge.svg)](https://github.com/sir-gon/algorithm-exercises-java/actions/workflows/java-gradle.yml)
[![Markdown Lint](https://github.com/sir-gon/algorithm-exercises-java/actions/workflows/markdown-lint.yml/badge.svg)](https://github.com/sir-gon/algorithm-exercises-java/actions/workflows/markdown-lint.yml)
Expand Down Expand Up @@ -244,9 +244,9 @@ Developed with runtime:

```text
java --version
java version "20.0.2" 2023-07-18
Java(TM) SE Runtime Environment (build 20.0.2+9-78)
Java HotSpot(TM) 64-Bit Server VM (build 20.0.2+9-78, mixed mode, sharing)
java 24.0.1 2025-04-15
Java(TM) SE Runtime Environment (build 24.0.1+9-30)
Java HotSpot(TM) 64-Bit Server VM (build 24.0.1+9-30, mixed mode, sharing)
```

## Algorithm excersices sources
Expand Down