-
Notifications
You must be signed in to change notification settings - Fork 178
95 lines (77 loc) · 1.93 KB
/
integration.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: Integration Test
on:
pull_request:
branches:
- master
- release-*
push:
branches:
- master
- release-*
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.actor }}
cancel-in-progress: true
jobs:
build-arena:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run go mod tidy
run: |
go mod tidy
if ! git diff --quiet; then
echo "Please run 'go mod tidy' to add missing and remove unused dependencies"
exit 1
fi
- name: Run go fmt check
run: |
make go-fmt
if ! git diff --quiet; then
echo "Please run 'make go-fmt' to run go fmt aganist code"
exit 1
fi
- name: Run go vet check
run: |
make go-vet
if ! git diff --quiet; then
echo "Please run 'make go-vet' to run go vet aganist code"
exit 1
fi
- name: Run golangci-lint
run: |
make go-lint
- name: Run unit tests
run: |
make unit-test
- name: Build arena binary
run: |
make arena
build-java-sdk:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 8
- name: Build Java SDK
run: |
make java-sdk
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Build docs
run: |
pip install -r docs/requirements.txt
mkdocs build --strict