test: add pippline test case #155
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" | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
name: "build" | |
services: | |
aerospike: | |
image: aerospike/aerospike-server:7.0.0.7_1 | |
ports: | |
- 3000:3000 | |
- 3001:3001 | |
- 3002:3002 | |
- 3003:3003 | |
redis: | |
image: redis:latest | |
ports: | |
- 6379:6379 | |
options: --health-cmd="redis-cli ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ 8, 21 ] | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
- name: "Set up Java JDK" | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.java }} | |
- name: "Print maven version" | |
run: ./mvnw -version | |
- name: "Test, Check style, Check PMD, Check license with Maven and Java" | |
if: matrix.java == '8' | |
run: | | |
./mvnw -T 4C clean test -Dasp-client.version=6.3.0 && sh ./tools/check_format.sh | |
- name: "Test with Maven and Java${{ matrix.java }}" | |
if: matrix.java != '8' | |
run: | | |
./mvnw -T 4C clean test -Dasp-client.version=4.1.2 | |
- name: "Codecov" | |
if: matrix.java == '8' | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |