Skip to content

Add support for metrics #82

Add support for metrics

Add support for metrics #82

Workflow file for this run

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