This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
76 lines (70 loc) · 1.95 KB
/
sdk.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
73
74
75
76
name: SDK
on:
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1
- name: golangci-lint
uses: golangci/golangci-lint-action@5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018
with:
version: v1.56.2
working-directory: sdk
skip-go-installation: true
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1
- name: Build SDK
working-directory: sdk
run: go build ./...
- name: Build SDK Tests
working-directory: sdk
run: go test -exec=echo ./...
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1
- name: Run SDK Unit Tests
working-directory: sdk
run: go test -v -race ./...
integration-tests:
runs-on: ubuntu-latest
steps:
- name: "Stellar Quickstart: Run"
run: docker run -d -p 8000:8000 --name stellar stellar/quickstart --standalone --enable-core-artificially-accelerate-time-for-testing
- name: "Stellar Quickstart: Wait for Ready"
run: while ! [ "$(curl -s --fail localhost:8000 | jq '.history_latest_ledger')" -gt 0 ]; do echo waiting; sleep 1; done
- name: "Stellar Quickstart: Details"
run: curl localhost:8000
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1
- name: Run SDK Integration Tests
working-directory: sdk
run: go test -v -race -p=1 ./**/integrationtests
env:
INTEGRATION_TESTS: 1
INTEGRATION_TESTS_HORIZON_URL: http://localhost:8000