Skip to content
This repository was archived by the owner on Oct 12, 2021. It is now read-only.

Commit 18a356f

Browse files
authored
Merge pull request #158 from vegaprotocol/grpc-subdir
Move gRPC files to subdir
2 parents 8baf9f0 + 3fb3b6c commit 18a356f

File tree

252 files changed

+165
-152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

252 files changed

+165
-152
lines changed

.dockerignore

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
# Exclude auto-generated code, avoid sending it all to the Docker daemon during image build.
2-
cpp
3-
go
4-
java
5-
js
6-
python
1+
# Avoid sending unnecessary data to the Docker daemon during image build.
2+
.git
3+
graphql
4+
grpc/clients
5+
grpc/doc

.github/workflows/docker.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ name: Docker tests
88
- develop
99
- master
1010
paths-ignore:
11-
- "cpp/**"
12-
- "go/**"
13-
- "java/**"
14-
- "js/**"
15-
- "python/**"
11+
- "grpc/clients/**"
1612

1713
jobs:
1814

.github/workflows/javascript-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
- name: Install
2626
run: |
27-
cd js
27+
cd grpc/clients/js
2828
npm ci
2929
3030
- name: Test
@@ -33,12 +33,12 @@ jobs:
3333
GRPC_NODE: ${{ secrets.GRPC_NODE }}
3434
WALLETSERVER: ${{ secrets.WALLETSERVER }}
3535
run: |
36-
cd js
36+
cd grpc/clients/js
3737
npm test
3838
3939
- name: Push release to npm (public)
4040
env:
4141
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4242
run: |
43-
cd js
43+
cd grpc/clients/js
4444
npm publish --access public .

.github/workflows/javascript.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,21 @@ name: Javascript tests
88
- develop
99
- master
1010
paths-ignore:
11-
- "cpp/**"
12-
- "go/**"
13-
- "java/**"
14-
- "python/**"
11+
- "grpc/clients/cpp/**"
12+
- "grpc/clients/go/**"
13+
- "grpc/clients/java/**"
14+
# do not ignore grpc/clients/js/
15+
- "grpc/clients/python/**"
1516
pull_request:
1617
branches:
1718
- develop
1819
- master
1920
paths-ignore:
20-
- "cpp/**"
21-
- "go/**"
22-
- "java/**"
23-
- "python/**"
21+
- "grpc/clients/cpp/**"
22+
- "grpc/clients/go/**"
23+
- "grpc/clients/java/**"
24+
# do not ignore grpc/clients/js/
25+
- "grpc/clients/python/**"
2426

2527
jobs:
2628

@@ -40,12 +42,12 @@ jobs:
4042

4143
- name: Install
4244
run: |
43-
cd js
45+
cd grpc/clients/js
4446
npm ci
4547
4648
- name: Lint
4749
run: |
48-
cd js
50+
cd grpc/clients/js
4951
npm run lint
5052
5153
- name: Test
@@ -54,5 +56,5 @@ jobs:
5456
GRPC_NODE: ${{ secrets.GRPC_NODE }}
5557
WALLETSERVER: ${{ secrets.WALLETSERVER }}
5658
run: |
57-
cd js
59+
cd grpc/clients/js
5860
npm test

.github/workflows/python-alpharelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
TWINE_USERNAME: __token__
2626
TWINE_PASSWORD: ${{ secrets.TWINE_TEST_PASSWORD }}
2727
run: |
28-
cd python
28+
cd grpc/clients/python
2929
github_tag="${GITHUB_REF/refs\/tags\/v/}"
3030
sed --in-place -e 's#^VERSION.*$#VERSION = "'"$github_tag"'"#' setup.py
3131
setuppy_tag="$(python -c "$(awk '/^VERSION = /' setup.py); print(VERSION)")"

.github/workflows/python-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
TWINE_USERNAME: __token__
2727
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
2828
run: |
29-
cd python
29+
cd grpc/clients/python
3030
github_tag="${GITHUB_REF/refs\/tags\/v/}"
3131
setuppy_tag="$(python -c "$(awk '/^VERSION = /' setup.py); print(VERSION)")"
3232
if test "$github_tag" '!=' "$setuppy_tag" ; then

.github/workflows/python.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,21 @@ name: Python tests
88
- develop
99
- master
1010
paths-ignore:
11-
- "cpp/**"
12-
- "go/**"
13-
- "java/**"
14-
- "js/**"
11+
- "grpc/clients/cpp/**"
12+
- "grpc/clients/go/**"
13+
- "grpc/clients/java/**"
14+
- "grpc/clients/js/**"
15+
# do not ignore grpc/clients/python/
1516
pull_request:
1617
branches:
1718
- develop
1819
- master
1920
paths-ignore:
20-
- "cpp/**"
21-
- "go/**"
22-
- "java/**"
23-
- "js/**"
21+
- "grpc/clients/cpp/**"
22+
- "grpc/clients/go/**"
23+
- "grpc/clients/java/**"
24+
- "grpc/clients/js/**"
25+
# do not ignore grpc/clients/python/
2426

2527
jobs:
2628

@@ -40,13 +42,13 @@ jobs:
4042

4143
- name: Lint with flake8
4244
run: |
43-
cd python
45+
cd grpc/clients/python
4446
command -v flake8 1>/dev/null || pip install flake8
4547
make flake8
4648
4749
- name: Lint with black
4850
run: |
49-
cd python
51+
cd grpc/clients/python
5052
command -v black 1>/dev/null || pip install black
5153
make black
5254
@@ -56,7 +58,7 @@ jobs:
5658
FAUCETSERVER: ${{ secrets.FAUCETSERVER }}
5759
WALLETSERVER: ${{ secrets.WALLETSERVER }}
5860
run: |
59-
cd python
61+
cd grpc/clients/python
6062
command -v pipenv 1>/dev/null || pip install pipenv
6163
make test
6264
@@ -66,17 +68,17 @@ jobs:
6668
FAUCETSERVER: ${{ secrets.FAUCETSERVER }}
6769
WALLETSERVER: ${{ secrets.WALLETSERVER }}
6870
run: |
69-
cd python
71+
cd grpc/clients/python
7072
make coverage
7173
7274
- name: Type-check with mypy
7375
run: |
74-
cd python
76+
cd grpc/clients/python
7577
command -v mypy 1>/dev/null || pip install mypy
7678
make mypy
7779
7880
- name: Check archive file counts
7981
run: |
80-
cd python
82+
cd grpc/clients/python
8183
python3 setup.py sdist bdist_wheel
8284
make check_dist

.github/workflows/yamllint.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ name: YAML lint
88
- develop
99
- master
1010
paths-ignore:
11-
- "cpp/**"
12-
- "go/**"
13-
- "java/**"
14-
- "js/**"
15-
- "python/**"
11+
- "grpc/clients/**"
1612

1713
jobs:
1814

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM scratch
22
LABEL maintainer="[email protected]"
33

44
# Add Vega proto files
5-
ADD /proto /proto
5+
ADD /grpc/proto /proto
66

77
# Add third party proto files
8-
ADD /vendor /vendor
8+
ADD /grpc/vendor /vendor

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ Version: 0.33.0
44

55
This repository contains auto-generated gRPC clients for various languages.
66

7-
## Update process
7+
## Update process - gRPC
88

99
```bash
1010
# Copy proto files from Core
11+
cd grpc
1112
VEGACORE=/path/to/go/src/vega make preproto
1213

1314
# Generate API clients
@@ -17,6 +18,16 @@ make proto
1718
GRPC_NODE=veganode.example.com:1234 WALLETSERVER=https://vegawallet.example.com make test
1819
```
1920

21+
## Update process - GraphQL
22+
```bash
23+
# Copy schema.graphql from Core
24+
cd graphql
25+
VEGACORE=/path/to/go/src/vega make pregraphql
26+
27+
# Generate documentation
28+
make graphql
29+
```
30+
2031
## Release process
2132

2233
```bash

0 commit comments

Comments
 (0)