Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Commit 3249594

Browse files
author
Derek Trider
authored
feat: Partial CouchDB implementation of new storage interface (#41)
Remaining methods to be implemented in further PRs. Signed-off-by: Derek Trider <Derek.Trider@securekey.com>
1 parent 398a80d commit 3249594

File tree

10 files changed

+2652
-0
lines changed

10 files changed

+2652
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#
2+
# Copyright SecureKey Technologies Inc. All Rights Reserved.
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
name: storage-couchdb
7+
on:
8+
push:
9+
paths:
10+
- 'component/newstorage/couchdb/**'
11+
pull_request:
12+
paths:
13+
- 'component/newstorage/couchdb/**'
14+
jobs:
15+
linter:
16+
name: Go linter
17+
timeout-minutes: 10
18+
env:
19+
LINT_PATH: component/newstorage/couchdb
20+
runs-on: ubuntu-18.04
21+
steps:
22+
- uses: actions/checkout@v2
23+
24+
- name: Checks linter
25+
timeout-minutes: 10
26+
run: make lint
27+
unitTest:
28+
name: Unit test
29+
runs-on: ubuntu-18.04
30+
timeout-minutes: 15
31+
env:
32+
UNIT_TESTS_PATH: component/newstorage/couchdb
33+
steps:
34+
- name: Setup Go 1.15
35+
uses: actions/setup-go@v2
36+
with:
37+
go-version: 1.15
38+
id: go
39+
40+
- uses: actions/checkout@v2
41+
42+
- name: Run unit test
43+
timeout-minutes: 15
44+
run: make unit-test
45+
46+
- name: Upload coverage to Codecov
47+
timeout-minutes: 10
48+
if: github.repository == 'hyperledger/aries-framework-go-ext'
49+
uses: codecov/codecov-action@v1.0.14
50+
with:
51+
file: ./coverage.out

component/newstorage/couchdb/go.mod

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright SecureKey Technologies Inc. All Rights Reserved.
2+
//
3+
// SPDX-License-Identifier: Apache-2.0
4+
module github.com/hyperledger/aries-framework-go-ext/component/newstorage/couchdb
5+
6+
go 1.15
7+
8+
require (
9+
github.com/cenkalti/backoff v2.2.1+incompatible
10+
github.com/go-kivik/couchdb/v3 v3.2.5
11+
github.com/go-kivik/kivik/v3 v3.2.3
12+
github.com/google/uuid v1.1.2
13+
github.com/hyperledger/aries-framework-go v0.1.6-0.20210111225112-7200091513d3
14+
github.com/hyperledger/aries-framework-go-ext/test/component/newstorage v0.0.0
15+
github.com/ory/dockertest/v3 v3.6.3
16+
github.com/stretchr/testify v1.6.1
17+
)
18+
19+
replace github.com/hyperledger/aries-framework-go-ext/test/component/newstorage => ../../../test/component/newstorage

component/newstorage/couchdb/go.sum

Lines changed: 635 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)