Skip to content

Commit

Permalink
Updated workflows to use RCD (#988)
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 f728b86 commit 519f9a4
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 41 deletions.
37 changes: 26 additions & 11 deletions .github/workflows/nightly_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,48 @@ jobs:
test_client:
runs-on: ${{ matrix.os }}
name: Run tests of master on ${{ matrix.os }} with Go ${{ matrix.go_version }}
env:
HZ_VERSION: "5.3.6"
if: github.repository == 'hazelcast/hazelcast-go-client'
strategy:
matrix:
os: [ ubuntu-latest ]
go_version: [ "1.20", "1.21" ]
fail-fast: false
steps:

- name: Setup Java
uses: actions/setup-java@v1
- name: "Checkout Code"
uses: "actions/checkout@v2"
with:
java-version: 8

- uses: actions/setup-go@v2
path: "$HOME/hazelcast-go-client"

- name: "Setup Go"
uses: "actions/setup-go@v2"
with:
go-version: "${{ matrix.go_version }}"

- name: Checkout code
uses: actions/checkout@v2

- 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: Test
env:
HAZELCAST_ENTERPRISE_KEY: ${{ secrets.HAZELCAST_ENTERPRISE_KEY }}
HZ_VERSION: 5.3.6
ENABLE_SSL: 1
MEMBER_COUNT: 3
run: |
./rc.sh start
go mod tidy
make test-cover
33 changes: 23 additions & 10 deletions .github/workflows/test-all-32bits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ jobs:
env:
GOPATH: "${{ github.workspace }}"
HZ_VERSION: "5.3.6"
strategy:
matrix:
os: [ ubuntu-latest ]
go_version: [ "1.20", "1.21" ]
fail-fast: false
defaults:
run:
shell: "bash"
Expand All @@ -17,21 +22,29 @@ 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"

- 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: "Install Go tools"
run: |
go install golang.org/x/tools/[email protected]
Expand Down
33 changes: 23 additions & 10 deletions .github/workflows/test-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ jobs:
env:
GOPATH: "${{ github.workspace }}"
HZ_VERSION: "5.3.6"
strategy:
matrix:
os: [ ubuntu-latest ]
go_version: [ "1.20", "1.21" ]
fail-fast: false
defaults:
run:
shell: "bash"
Expand All @@ -17,21 +22,29 @@ 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"

- 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: "Install Go tools"
run: |
go install golang.org/x/tools/[email protected]
Expand Down
33 changes: 23 additions & 10 deletions .github/workflows/test-race.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ jobs:
env:
GOPATH: "${{ github.workspace }}"
HZ_VERSION: "5.3.6"
strategy:
matrix:
os: [ ubuntu-latest ]
go_version: [ "1.20", "1.21" ]
fail-fast: false
defaults:
run:
shell: "bash"
Expand All @@ -16,21 +21,29 @@ 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"

- 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: "Install Go tools"
run: |
go install golang.org/x/tools/[email protected]
Expand Down

0 comments on commit 519f9a4

Please sign in to comment.