use cluster hostname if available #633
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: Java CI | |
on: [ push ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [ '8', '11', '17', '21' ] | |
name: Build | |
steps: | |
- name: Setup redis 1 | |
uses: getong/redis-action@v1 | |
with: | |
redis version: '3.2.3' | |
host port: 6380 | |
container port: 6380 | |
redis password: 'test' | |
- name: Setup redis 2 | |
uses: shogo82148/actions-setup-redis@v1 | |
with: | |
redis-version: '6.x' | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'adopt' | |
check-latest: false | |
- name: Build with Maven | |
run: mvn -B install |