Set opensearch-plugin-template-java plugin 3.0.0 baseline JDK version… #206
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test Plugin Template | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
- windows-latest | |
java: | |
- 21 | |
- 23 | |
name: Build and Test Plugin Template | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: temurin | |
- name: Build and Run Tests | |
run: | | |
./gradlew build | |
- name: Publish plugin ZIP to staging repository | |
run: | | |
./gradlew publishPluginZipPublicationToZipStagingRepository |