fix github action #189
This file contains hidden or 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: | |
| - '**' | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Extract JDK version | |
| id: jdkversion | |
| uses: ./.github/actions/extract-jdk-version | |
| - name: Print extracted version | |
| run: | | |
| echo "Extracted: ${{ steps.jdkversion.outputs.version }}" | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: ${{ steps.jdkversion.outputs.version }} | |
| cache: 'maven' | |
| - name: Set up Aerospike Database | |
| uses: reugn/github-action-aerospike@v1 | |
| - name: Build with Maven | |
| run: mvn clean test -B -U |