add bean for AerospikeTestOperations #2187
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 project | |
| on: | |
| push: | |
| branches: [ main, FMWK-802-parameterize-embedded-aerospike-server ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout repo using https://github.com/marketplace/actions/checkout | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Aerospike Database | |
| uses: reugn/github-action-aerospike@v1 | |
| with: | |
| server-version: "7.1.0.7" | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 17 | |
| - name: Set up Maven | |
| uses: stCarolas/setup-maven@v5 | |
| with: | |
| maven-version: 3.9.8 | |
| # See: https://github.com/actions/cache/blob/main/examples.md#java---maven | |
| - name: Maven cache and restore deps | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-maven- | |
| - name: Build with Maven | |
| run: mvn clean test -B -U |