ING-604: Remove support for memcached buckets from management API #195
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: Run Tests | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test: | |
name: Integration Test | |
strategy: | |
matrix: | |
server: | |
- 7.2.1 | |
runs-on: ubuntu-20.04 | |
services: | |
couchbase: | |
image: couchbase:enterprise-${{ matrix.server }} | |
ports: | |
- 8091-8096:8091-8096 | |
- 18091-18096:18091-18096 | |
- 11210:11210 | |
- 11207:11207 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: 1.19 | |
- uses: arduino/setup-protoc@v1 | |
with: | |
version: 3.17 | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install Tools | |
run: | | |
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28 | |
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2 | |
go install github.com/matryer/moq@latest | |
- name: Generate Files | |
run: | | |
go generate | |
- name: Install Dependencies | |
run: go get | |
- name: Initialize Test Cluster | |
run: ./.github/bin/init-cluster | |
- name: Check Test Cluster | |
run: ./.github/bin/check-cluster | |
- name: Setup Cluster | |
run: | | |
curl -X POST -u Administrator:password http://127.0.0.1:8091/pools/default/buckets/default/scopes/_default/collections -d name=test | |
- name: Run Tests | |
timeout-minutes: 10 | |
env: | |
SGTEST_CBCONNSTR: 127.0.0.1 | |
run: go test -v $(go list ./... | grep -v /contrib/) |