-
Notifications
You must be signed in to change notification settings - Fork 60
46 lines (40 loc) · 1.08 KB
/
test-race.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: "Test Go Client with Race Detector Enabled"
on: ["push", "pull_request"]
jobs:
test:
runs-on: "ubuntu-latest"
env:
GOPATH: "${{ github.workspace }}"
HZ_VERSION: "5.1.2"
defaults:
run:
shell: "bash"
working-directory: "$HOME/hazelcast-go-client"
steps:
- name: "Checkout Code"
uses: "actions/checkout@v2"
with:
path: "$HOME/hazelcast-go-client"
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
- name: "Start Hazelcast Remote Controller"
run: |
bash ./rc.sh start
sleep 2
- name: "Setup Go"
uses: "actions/setup-go@v2"
with:
go-version: "1.18"
- name: "Install Go tools"
run: |
go install golang.org/x/tools/[email protected]
go install honnef.co/go/tools/cmd/[email protected]
- name: "Go mod tidy"
run: |
go mod tidy
- name: "Run Tests with Race Detection"
run: |
make test-race