Skip to content

Commit

Permalink
fix test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
semihbkgr committed May 13, 2024
1 parent 260a9c6 commit e747b3d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/integrational-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
env:
GCP_PROJECT_ID: ${{ secrets.GKE_PROJECT }}
GKE_ZONE: europe-west1-b
GCP_NETWORK: tutorial-test-network
GCP_NETWORK: tutorial-test-network
EXAMPLES_DIR: docs/modules/ROOT/examples

jobs:
create-gke-cluster:
Expand Down Expand Up @@ -166,7 +167,7 @@ jobs:
- name: Test Java Client
run: |-
EXTERNAL_IP="${{ env.EXTERNAL_IP }}"
cd java${{matrix.suffix}}
cd $EXAMPLES_DIR/java${{matrix.suffix}}
sed -i "s/<EXTERNAL-IP>/$EXTERNAL_IP/g" src/main/java/com/hazelcast/Main.java
mvn package
java -jar target/*jar-with-dependencies*.jar >> output-java.txt &
Expand All @@ -179,7 +180,7 @@ jobs:
- name: Test Node.js Client
run: |-
EXTERNAL_IP="${{ env.EXTERNAL_IP }}"
cd nodejs${{matrix.suffix}}
cd $EXAMPLES_DIR/nodejs${{matrix.suffix}}
sed -i "s/<EXTERNAL-IP>/$EXTERNAL_IP/g" client.js
npm install
npm start >> output-nodejs.txt &
Expand All @@ -192,7 +193,7 @@ jobs:
- name: Test Go Client
run: |-
EXTERNAL_IP="${{ env.EXTERNAL_IP }}"
cd go${{matrix.suffix}}
cd $EXAMPLES_DIR/go${{matrix.suffix}}
sed -i "s/<EXTERNAL-IP>/$EXTERNAL_IP/g" main.go
go run main.go >> output-go.txt &
PID=$!
Expand All @@ -204,7 +205,7 @@ jobs:
- name: Test Python Client
run: |-
EXTERNAL_IP="${{ env.EXTERNAL_IP }}"
cd python${{matrix.suffix}}
cd $EXAMPLES_DIR/python${{matrix.suffix}}
sed -i "s/<EXTERNAL-IP>/$EXTERNAL_IP/g" main.py
pip install -r requirements.txt
python main.py >> output-python.txt &
Expand Down

0 comments on commit e747b3d

Please sign in to comment.