Skip to content

Commit

Permalink
Use RCD (#989)
Browse files Browse the repository at this point in the history
Updated workflows to use RCD
  • Loading branch information
yuce authored Dec 21, 2023
1 parent 519f9a4 commit be86c4d
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 25 deletions.
36 changes: 25 additions & 11 deletions .github/workflows/benchmark-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ jobs:
runs-on: "ubuntu-latest"
env:
GOPATH: "${{ github.workspace }}"
HZ_VERSION: "5.3.6"
strategy:
matrix:
os: [ ubuntu-latest ]
go_version: [ "1.20" ]
fail-fast: false
defaults:
run:
shell: "bash"
Expand All @@ -16,20 +22,28 @@ jobs:
with:
path: "$HOME/hazelcast-go-client"

- name: "Install Dependencies"
run: |
sudo apt-get update &&\
sudo apt-get install -y openjdk-8-jdk-headless maven
- name: "Start Hazelcast Remote Controller"
run: |
bash ./rc.sh start
sleep 2
- name: "Setup Go"
uses: "actions/setup-go@v2"
with:
go-version: "1.20"
go-version: "${{ matrix.go_version }}"

- name: "Setup JRE"
uses: "actions/setup-java@v2"
with:
distribution: "zulu"
java-version: "8"

- name: "Download RCD (Linux/MacOS)"
if: "!contains(matrix.os, 'windows')"
run: |
wget https://rcd-download.s3.us-east-2.amazonaws.com/rcd-${{ matrix.os }}
- name: "Start Hazelcast Remote Controller (Linux/MacOS)"
if: "!contains(matrix.os, 'windows')"
run: |
chmod +x rcd-${{ matrix.os }}
./rcd-${{ matrix.os }} -version $HZ_VERSION -dir $HOME &
sleep 10
- name: "Run Benchmarks, Single Member"
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/coverage_runner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ jobs:
needs: [check_for_membership]
if: github.event_name == 'push' || needs.check_for_membership.outputs.check-result == 'true' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
env:
HZ_VERSION: "5.3.6"
steps:
- uses: actions/setup-go@v2
- uses: "actions/setup-go@v2"
with:
go-version: '1.20'
go-version: "${{ matrix.go_version }}"

- name: Install JDK
uses: actions/setup-java@v2
Expand All @@ -60,12 +62,10 @@ jobs:

- name: Test
env:
HAZELCAST_ENTERPRISE_KEY: ${{ secrets.HAZELCAST_ENTERPRISE_KEY }}
HZ_VERSION: 5.3.6
HAZELCAST_ENTERPRISE_KEY: "${{ secrets.HAZELCAST_ENTERPRISE_KEY }}"
SSL_ENABLED: 1
MEMBER_COUNT: 3
run: |
./rc.sh start
go mod tidy
make test-cover
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-all-32bits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
HZ_VERSION: "5.3.6"
strategy:
matrix:
os: [ ubuntu-latest ]
go_version: [ "1.20", "1.21" ]
os: [ "ubuntu-latest" ]
go_version: [ "1.20" ]
fail-fast: false
defaults:
run:
Expand All @@ -25,7 +25,7 @@ jobs:
- name: "Setup Go"
uses: "actions/setup-go@v2"
with:
go-version: "1.20"
go-version: "${{ matrix.go_version }}"

- name: "Setup JRE"
uses: "actions/setup-java@v2"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
HZ_VERSION: "5.3.6"
strategy:
matrix:
os: [ ubuntu-latest ]
go_version: [ "1.20", "1.21" ]
os: [ "ubuntu-latest" ]
go_version: [ "1.20" ]
fail-fast: false
defaults:
run:
Expand All @@ -25,7 +25,7 @@ jobs:
- name: "Setup Go"
uses: "actions/setup-go@v2"
with:
go-version: "1.20"
go-version: "${{ matrix.go_version }}"

- name: "Setup JRE"
uses: "actions/setup-java@v2"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-race.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
HZ_VERSION: "5.3.6"
strategy:
matrix:
os: [ ubuntu-latest ]
go_version: [ "1.20", "1.21" ]
os: [ "ubuntu-latest" ]
go_version: [ "1.20" ]
fail-fast: false
defaults:
run:
Expand All @@ -24,7 +24,7 @@ jobs:
- name: "Setup Go"
uses: "actions/setup-go@v2"
with:
go-version: "1.20"
go-version: "${{ matrix.go_version }}"

- name: "Setup JRE"
uses: "actions/setup-java@v2"
Expand Down

0 comments on commit be86c4d

Please sign in to comment.