Go nightly build #127
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go nightly build | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 2 * * *' | |
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: "Checkout Code" | |
uses: "actions/checkout@v2" | |
with: | |
path: "$HOME/hazelcast-go-client" | |
- name: "Setup Go" | |
uses: "actions/setup-go@v2" | |
with: | |
go-version: "${{ matrix.go_version }}" | |
- name: "Setup JRE" | |
uses: "actions/setup-java@v4" | |
with: | |
distribution: "zulu" | |
java-version: "17" | |
- 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 }} | |
ENABLE_SSL: 1 | |
MEMBER_COUNT: 3 | |
run: | | |
go mod tidy | |
make test-cover |