Skip to content

Commit

Permalink
Run whole maven workflow w/ one command
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannguyen4 committed Jul 24, 2024
1 parent 74d7abc commit 14673c2
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/build-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ jobs:
with:
servers: '[{"id": "snapshots", "username": "${{ secrets.JFROG_USERNAME }}", "password": "${{ secrets.JFROG_MAVEN_TOKEN }}"}]'

- name: Build Java client
run: mvn install

- name: Run Aerospike server
run: docker run -d --name aerospike -p 3000:3000 aerospike/aerospike-server

Expand All @@ -50,8 +47,15 @@ jobs:
- name: Wait for native and proxy server to start
run: sleep 3

- name: Run tests
run: mvn test -Dtest=com.aerospike.test.SuiteAll -DfailIfNoTests=false -DskipTests=false
- uses: jfrog/setup-jfrog-cli@v4
env:
JF_URL: ${{ env.JFROG_URL }}
JF_USER: ${{ secrets.JFROG_USERNAME }}
JF_PASSWORD: ${{ secrets.JFROG_MAVEN_TOKEN }}
JF_PROJECT: "clients"

- name: Run Maven workflow
run: jf rt mvn install -Dtest=com.aerospike.test.SuiteAll -DfailIfNoTests=false -DskipTests=false

# TODO: For debugging. Remove later
- if: ${{ always() }}
Expand All @@ -62,19 +66,9 @@ jobs:
- if: ${{ always() }}
run: docker exec aerospike-proxy cat /var/log/aerospike-proxy/aerospike-proxy.log

- name: Upload to JFrog
run: mvn deploy

# TODO: create release bundle
# Based on https://github.com/citrusleaf/devops/blob/master/jfrog/vector/deploy-to-jfrog.sh

- uses: jfrog/setup-jfrog-cli@v4
env:
JF_URL: ${{ env.JFROG_URL }}
JF_USER: ${{ secrets.JFROG_USERNAME }}
JF_PASSWORD: ${{ secrets.JFROG_MAVEN_TOKEN }}
JF_PROJECT: "clients"

- run: sudo apt install -y libxml-xpath-perl

- name: Get Java proxy client version
Expand Down

0 comments on commit 14673c2

Please sign in to comment.