Skip to content

Commit 2eddc71

Browse files
authored
feat(nodetime): add sta pkg and refactor (#757)
* feat(nodetime): add sta pkg and refactor a new pkg/ called nodetime added to host and use a single NodeJS runtime that has multiple CLIs bundled inside. * `swagger-typescript-api` CLI added alongside `protobufjs` CLI. * switched Starport's Go compiler to 1.16 beta to benefit from new the `embed` feature. it'll be switched to stable 1.16 release once it's available (likely this Feb). * fix integration tests * fix gitpod
1 parent 2452ca9 commit 2eddc71

30 files changed

+378
-163
lines changed

.github/workflows/goreleaser.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ jobs:
1515
- name: Set up Go
1616
uses: actions/setup-go@v2
1717
with:
18-
go-version: 1.15
18+
go-version: "1.16.0-rc1"
19+
stable: false
1920

2021
- name: Set up Node
2122
uses: actions/setup-node@v2-beta
@@ -31,8 +32,6 @@ jobs:
3132
3233
- name: Checkout
3334
uses: actions/checkout@v2
34-
with:
35-
lfs: true
3635
with:
3736
path: ${{ env.working-directory }}
3837
fetch-depth: 0

.github/workflows/lint.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,18 @@ jobs:
1111
runs-on: ubuntu-latest
1212
timeout-minutes: 6
1313
steps:
14-
- uses: actions/checkout@v2
14+
- name: Set up Go
15+
uses: actions/setup-go@v2
1516
with:
16-
lfs: true
17+
go-version: "1.16.0-rc1"
18+
stable: false
19+
20+
- uses: actions/checkout@v2
21+
1722
- uses: golangci/golangci-lint-action@master
1823
with:
19-
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
20-
version: v1.28
24+
version: v1.36.0
2125
args: --timeout 10m
2226
github-token: ${{ secrets.github_token }}
27+
skip-go-installation: true
2328

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v1
12-
with:
13-
lfs: true
1412
- uses: actions/setup-node@v1
1513
with:
1614
node-version: 14

.github/workflows/test-e2e.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ jobs:
1616
- name: Set up Go
1717
uses: actions/setup-go@v2
1818
with:
19-
go-version: 1.15
19+
go-version: "1.16.0-rc1"
20+
stable: false
2021

2122
- name: Set up Node
2223
uses: actions/setup-node@v2-beta
@@ -34,7 +35,6 @@ jobs:
3435
with:
3536
path: ${{ env.working-directory }}
3637
fetch-depth: 0
37-
lfs: true
3838

3939
- name: Build UI
4040
working-directory: ${{ env.working-directory }}

.github/workflows/test-integration.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v2
1919
with:
20-
go-version: 1.15
20+
go-version: "1.16.0-rc1"
21+
stable: false
22+
23+
- name: "Get Go 1.15"
24+
run: |
25+
go get golang.org/dl/go1.15
26+
go1.15 download
2127
2228
- name: Install protoc
2329
uses: arduino/setup-protoc@v1
@@ -30,7 +36,6 @@ jobs:
3036
with:
3137
path: ${{ env.working-directory }}
3238
fetch-depth: 0
33-
lfs: true
3439

3540
- name: Build UI
3641
working-directory: ${{ env.working-directory }}
@@ -52,3 +57,5 @@ jobs:
5257
- name: Run Integration Tests
5358
working-directory: ${{ env.working-directory }}
5459
run: ./scripts/test-integration
60+
env:
61+
GONAME: "go1.15"

.github/workflows/test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v2
15-
with:
16-
lfs: true
1715
- uses: actions/setup-go@v2
1816
with:
19-
go-version: '1.15'
17+
go-version: "1.16.0-rc1"
18+
stable: false
2019
- run: ./scripts/test-unit

.gitpod.Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
FROM gitpod/workspace-full
22

3+
RUN wget https://golang.org/dl/go1.16rc1.linux-amd64.tar.gz && \
4+
rm -rf $HOME/go && \
5+
tar -C $HOME -xzf go1.16rc1.linux-amd64.tar.gz && \
6+
rm go1.16rc1.linux-amd64.tar.gz
7+
8+
ENV GONAME go1.15
9+
310
RUN brew install gh protobuf

.gitpod.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ workspaceLocation: "./starport/docs"
77

88
tasks:
99
- name: Install Starport
10+
before: |
11+
go get golang.org/dl/go1.15
12+
go1.15 download
13+
1014
init: |
1115
# Install Starport
1216
export BIN_PATH=$GOPATH/bin

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/tendermint/starport
22

3-
go 1.15
3+
go 1.16
44

55
require (
66
github.com/AlecAivazis/survey/v2 v2.1.1

go.sum

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

0 commit comments

Comments
 (0)