-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdapi_durability_impossible_test.yml
More file actions
71 lines (68 loc) · 2.03 KB
/
dapi_durability_impossible_test.yml
File metadata and controls
71 lines (68 loc) · 2.03 KB
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
name: Run Data API Durability Impossible Tests
permissions:
contents: read
packages: read
on:
push:
tags:
- v*
branches:
- master
pull_request:
jobs:
test:
name: Test
strategy:
matrix:
server:
- 8.1.0-1203
- 8.0.0
- 7.6.8
- 7.2.8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install cbdinocluster
uses: ./.github/actions/install-cbdinocluster
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Start couchbase cluster
id: start-cluster
uses: ./.github/actions/start-couchbase-cluster
- uses: actions/setup-go@v5
with:
go-version: 1.26
- uses: arduino/setup-protoc@v3
with:
version: 31.1
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Tools
run: |
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.36
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.5
go install github.com/matryer/moq@v0.5
- name: Install Dependencies
run: go get ./...
- name: Generate Files
run: |
go generate ./...
- name: Run Test
env:
SGTEST_CBCONNSTR: ${{ steps.start-cluster.outputs.node-ip }}
SGTEST_DINOID: ${{ steps.start-cluster.outputs.dino-id }}
run: go test ./gateway/test -run TestGatewayOps -v -testify.m TestDapiDurabilityImpossible
- name: Collect couchbase logs
timeout-minutes: 10
if: failure()
run: |
mkdir -p ./dapi-durability-impossible-logs
cbdinocluster -v collect-logs ${{ steps.start-cluster.outputs.dino-id }} ./dapi-durability-impossible-logs
- name: Upload couchbase logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: cbcollect-logs-${{ matrix.server }}
path: ./dapi-durability-impossible-logs/*
retention-days: 5