Skip to content

Commit

Permalink
Add osc-sdk-java tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryohkhn authored and outscale-mgo committed Aug 19, 2024
1 parent f0efd25 commit 7a43969
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,22 @@ jobs:
sudo cp ~/.nvm/nvm.sh /usr/local/bin/nvm
sudo chmod +x /usr/local/bin/nvm
- name: osc-sdk-js local tests
run: ./scripts/osc-sdk-js-tests.sh
run: ./scripts/osc-sdk-js-tests.sh
osc-sdk-java-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: outscale/osc-sdk-java
path: osc-sdk-java
- name: Copy xml Java setup
run: |
sudo cp osc-sdk-java/pom.xml .
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
- name: osc-sdk-java local tests
run: ./scripts/osc-sdk-java-tests.sh
11 changes: 11 additions & 0 deletions scripts/osc-sdk-java-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

pkill ricochet
set -e
cargo build --profile 'sdks'
cargo run --profile 'sdks' -- ./ricochet.json &> /dev/null &
sleep 5

cd osc-sdk-java

./local_tests.sh ""

0 comments on commit 7a43969

Please sign in to comment.