-
Notifications
You must be signed in to change notification settings - Fork 199
48 lines (47 loc) · 1.8 KB
/
build.yml
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
name: Aerospike Go Client Tests
'on':
push:
pull_request:
env:
AEROSPIKE_HOSTS: '127.0.0.1:3000'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- '1.18'
- '1.19'
- '1.20'
- '1.21'
steps:
- uses: actions/checkout@v3
- name: 'Setup Go ${{ matrix.go-version }}'
uses: actions/setup-go@v3
with:
go-version: '${{ matrix.go-version }}'
cache: true
- name: Display Go version
run: go version
- name: Set up Aerospike Database
uses: reugn/github-action-aerospike@v1
- name: Test Lua Code
run: go run github.com/onsi/ginkgo/v2/ginkgo -cover -race -r -keep-going -succinct -randomize-suites internal/lua
- name: Test types package
run: go run github.com/onsi/ginkgo/v2/ginkgo -cover -race -r -keep-going -succinct -randomize-suites types
- name: Test pkg tests
run: go run github.com/onsi/ginkgo/v2/ginkgo -cover -race -r -keep-going -succinct -randomize-suites pkg
- name: Build Benchmark tool
run: cd tools/benchmark | go build -o benchmark .
- name: Build asinfo tool
run: cd tools/asinfo | go build -o asinfo .
- name: Build cli tool
run: cd tools/cli | go build -o cli .
- name: Build example files
run: find examples -name "*.go" -type f -print0 | xargs -0 -n1 go build
# - name: Build with Reflection code removed
# run: go run github.com/onsi/ginkgo/v2/ginkgo build -tags="as_performance" .
# - name: Build for Google App Engine (unsafe package removed)
# run: go run github.com/onsi/ginkgo/v2/ginkgo -tags="app_engine" .
- name: Run the tests
run: go run github.com/onsi/ginkgo/v2/ginkgo -cover -race -keep-going -succinct -randomize-suites