This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
72 lines (66 loc) · 1.59 KB
/
vdr-orb.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#
# Copyright SecureKey Technologies Inc. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
name: vdr-orb
on:
push:
paths:
- 'component/vdr/orb/**'
- 'test/bdd/vdr/orb/**'
pull_request:
paths:
- 'component/vdr/orb/**'
- 'test/bdd/vdr/orb/**'
jobs:
linter:
name: Go linter
timeout-minutes: 10
env:
LINT_PATH: component/vdr/orb
GOLANGCI_LINT_IMAGE: "golangci/golangci-lint:v1.54.2"
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Checks linter
timeout-minutes: 10
run: make lint
unitTest:
name: Unit test
runs-on: ubuntu-18.04
timeout-minutes: 15
env:
UNIT_TESTS_PATH: component/vdr/orb
steps:
- name: Setup Go 1.21
uses: actions/setup-go@v2
with:
go-version: 1.21
id: go
- uses: actions/checkout@v2
- name: Run unit test
timeout-minutes: 15
run: make unit-test
- name: Upload coverage to Codecov
timeout-minutes: 10
if: github.repository == 'hyperledger/aries-framework-go-ext'
uses: codecov/[email protected]
with:
file: ./coverage.out
bddtest:
name: BDD test
timeout-minutes: 30
runs-on: ubuntu-18.04
steps:
- name: Setup Go 1.21
uses: actions/setup-go@v2
with:
go-version: 1.21
id: go
- uses: actions/checkout@v2
- name: BDD test
timeout-minutes: 20
run: |
echo '127.0.0.1 testnet.orb.local' | sudo tee -a /etc/hosts
make vdr-orb-bdd-test