8000 chore: release/v0.17.0 by lumtis · Pull Request #1372 · ignite/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: release/v0.17.0 #1372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 86 commits into from
Jul 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
044aa82
chore: merge master
ilgooz May 31, 2021
9ad4b4d
feat: scaffold a new app without a default module (#1214)
lumtis Jun 2, 2021
d9e4c51
fix(docs): typo (bond_demon -> bond_denom) (#1222)
AlexTroshkin Jun 4, 2021
2bc49a4
fix(cmd): setting app name on build time (#1228)
ilgooz Jun 8, 2021
1fd4556
docs: Getting Started (#1220)
fadeev Jun 8, 2021
b8e59b6
chore(deps): bump ssri from 6.0.1 to 6.0.2 in /docs (#1233)
dependabot[bot] Jun 9, 2021
d278258
chore(deps): bump ws from 6.2.1 to 6.2.2 in /docs (#1232)
dependabot[bot] Jun 9, 2021
5367ab7
chore(deps): bump dns-packet from 1.3.1 to 1.3.4 in /docs (#1231)
dependabot[bot] Jun 9, 2021
47e8de9
chore(deps): bump browserslist from 4.16.3 to 4.16.6 in /docs (#1230)
dependabot[bot] Jun 9, 2021
39aef3e
docs(install): mention setting go env vars (#1235)
fadeev Jun 10, 2021
63fdb45
chore(Makefile): make install faster (#1238)
ilgooz Jun 11, 2021
fd4ac26
feat(build): add --release option (#1237)
ilgooz Jun 11, 2021
1c37c94
feat(templates): bump sdk version (#1210)
faddat Jun 14, 2021
239df42
docs(cmd/build): improve --release flag (#1240)
Jun 15, 2021
54f9bae
fix(dockerfile): switch user earlier to mitigate perms issues (#1243)
martin-sweeny Jun 15, 2021
b569488
docs: Typo in install section (#1245)
fadeev Jun 15, 2021
5892648
feat: support multiple name convention for component and field names …
lumtis Jun 10000 15, 2021
b222eb4
docs: Docs search (#1246)
fadeev Jun 16, 2021
73a5169
chore: add GA to the docs website (#1241)
fadeev Jun 16, 2021
5b70635
feat: print modified and created files when scaffolding components (#…
lumtis Jun 17, 2021
c502d72
feat(docs): generate docs for cli and automate w/ (#1253)
ilgooz Jun 17, 2021
cba2cf4
docs(cli): update generated docs (#1255)
github-actions[bot] Jun 17, 2021
020878a
fix: use snake case for generated filenames (#1251)
lumtis Jun 17, 2021
d707840
refactor(cmd): remove relayer rly cmd (#1254)
ilgooz Jun 17, 2021
c9cd1aa
fix: go.sum (#1258)
ilgooz Jun 17, 2021
16bfbe8
fix: indexed type test error (#1257)
lumtis Jun 17, 2021
6cc2f58
docs(cli): update generated docs (#1259)
github-actions[bot] Jun 17, 2021
883b0f7
fix: GA for docs (#1252)
fadeev Jun 17, 2021
de13ae2
docs: Getting started fix (#1242)
fadeev Jun 17, 2021
e55a8f5
feat(templates/ci): add integration to auto release apps (#1239)
ilgooz Jun 17, 2021
7178257
fix: prevent using incorrect module name (#1256)
lumtis Jun 21, 2021
916371d
docs: fix typo in getting started (#1266)
fadeev Jun 21, 2021
cfcf6e4
feat(cmd): add 'tools' command (#1268)
ilgooz Jun 21, 2021
0a9b5c0
docs(cli): update generated docs (#1272)
github-actions[bot] Jun 21, 2021
2f66c29
refactor(cmd): add 'scaffold' command and (#1270)
ilgooz Jun 21, 2021
78c6557
docs(cli): update generated docs (#1273)
github-actions[bot] Jun 21, 2021
703764e
refactor(cmd): add 'chain' command and (#1271)
ilgooz Jun 21, 2021
36d5657
docs(cli): update generated docs (#1275)
github-actions[bot] Jun 21, 2021
90db01d
Merge pull request #1283 from tendermint/master
ilgooz Jun 22, 2021
dd12cf4
docs: add a link to the intro video (#1280)
fadeev Jun 22, 2021
340f705
refactor(ci): organize workflow names (#1284)
ilgooz Jun 22, 2021
95f0eb4
fix: Dockerfile perm issue (#1278)
ilgooz Jun 22, 2021
180b9f8
feat(nodetime): temporarily use x64 build for M1
Pantani Jun 22, 2021
5c64bb6
fix(templates): remove deprecated warning for Mac 10.15+
Pantani Jun 22, 2021
fc46a7c
docs: replace `int64` with `uint` (#1289)
fadeev Jun 23, 2021
1759a71
chore(docs/cli): add notice (#1291)
ilgooz Jun 23, 2021
70e8c4d
docs(cli): update generated docs (#1292)
github-actions[bot] Jun 23, 2021
c4465d3
feat(cosmosfaucet): add rate limiting (#1279)
knight644 Jun 23, 2021
ad029b1
docs: clean up Contributing section (#1294)
Jun 24, 2021
7c706c7
feat: add @Pantani to Codeowners (#1293)
Pantani Jun 24, 2021
b1e5b34
fix(clispinner): avoid data race (#1288)
Pantani Jun 24, 2021
f8e8ad9
docs: sync with new command names (#1300)
lumtis Jun 25, 2021
d323701
feat(templates): upgrade sdk version (#1306)
faddat Jun 28, 2021
5bcda88
feat(cmd): add 'chain init' command (#1308)
ilgooz Jun 29, 2021
1fd2cac
feat(cmd/tools): add 'protoc' command and (#1301)
ilgooz Jun 29, 2021
cdb5cae
feat(cmd/scaffold): add vue command (#1314)
ilgooz Jun 30, 2021
9623b32
docs: start a contributing guideline (#1317)
ilgooz Jul 1, 2021
19e679e
feat(cmd): add 'generate' command and refactor chain pkg (#1302)
ilgooz Jul 1, 2021
1aaa183
fix(docs): typo (#1322)
faddat Jul 1, 2021
5af7114
refactor(cmd): add list and map commands to scaffold (#1321)
ilgooz Jul 2, 2021
8bfdfd3
feat(ci): collect repo stats (#1320)
faddat Jul 2, 2021
2cc8e72
feat(Makefile): add more commands (#1304)
Pantani Jul 2, 2021
34b952f
feat(cmd/scaffold): add module, wasm, query, and (#1313)
ilgooz Jul 2, 2021
c028888
docs: Nit Improvements and added link to Contribution File (#1331)
soniasingla Jul 5, 2021
f31e9dd
docs: update changelog (#1323)
fadeev Jul 5, 2021
cc9e999
chore(cmd): manually order command list (#1329)
ilgooz Jul 5, 2021
c4782cc
feat: dependencies option for module create (#1287)
lumtis Jul 5, 2021
d159d4d
feat(pkg/protoanalysis): ignore hidden files (#1296)
Pantani Jul 6, 2021
4dcc608
fix(templates/ci): releaser workflow (#1335)
faddat Jul 6, 2021
ddb9eec
fix(scaffolder): remove the ibc missing placeholder error (#1328)
lumtis Jul 6, 2021
8d4242d
refactor(template/app): simplify `cmd` package and use `cosmosapp` mo…
lumtis Jul 6, 2021
0b8a5c7
feat(cmd): add 'scaffold single' command (#1269)
lumtis Jul 6, 2021
d864ac9
docs: Revert changes to the readme (#1348)
fadeev Jul 8, 2021
a6c8169
improvement(cmd): rename --no-default-module to --no-module (#1346)
soniasingla Jul 9, 2021
e760acd
add a section about Feedback/Issues in the Contributing File (#1338)
soniasingla Jul 9, 2021
ed0a5a9
docs: Revert changes to the readme on Gitpod (#1349)
fadeev Jul 9, 2021
7f67fcb
docs(cmd): improve command descriptions (#1354)
soniasingla Jul 12, 2021
5ed17af
chore(templates/ci): do not build arm binaries (#1355)
ilgooz Jul 12, 2021
7342975
fix(cmd/generate): vuex and openapi cmds should work (#1356)
ilgooz Jul 13, 2021
dc7e897
feat(codegen): add file path for code generation errs (#1357)
ilgooz Jul 13, 2021
e197ab6
docs(cmd): improve command descriptions (#1358)
ilgooz Jul 13, 2021
c491332
chore: disable ga (#1366)
ilgooz Jul 14, 2021
8ca96f2
feat(module): bandchain oracle support (#1343)
Pantani Jul 15, 2021
e4e6a33
docs(cli): update generated docs (#1311)
github-actions[bot] Jul 15, 2021
6a14a46
docs: Update changelog for v0.17 (#1353)
fadeev Jul 15, 2021
faeb7d8
Command structure (#1330)
fadeev Jul 15, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
*.md @barriebyron

# Primary repo maintainers
* @fadeev @ilgooz @lubtd @dshulyak
* @fadeev @ilgooz @lubtd @Pantani
34 changes: 34 additions & 0 deletions .github/workflows/gen-docs-cli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Generate Docs

on:
push:
branches:
- develop

jobs:
cli:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Generate CLI Docs
run: ./scripts/gen-cli-docs

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
title: "docs(cli): update generated docs"
commit-message: "docs(cli): update generated docs"
body: ""
branch: feat/gen-cli-docs

- name: Check outputs
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"

4 changes: 2 additions & 2 deletions .github/workflows/release-binary.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: goreleaser
name: Release

on:
push:
tags:
- "*"

jobs:
goreleaser:
binary:
runs-on: ubuntu-latest
env:
working-directory: go/src/github.com/tendermint/starport
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Docker Image
name: Release
on:
release:
types: [published]
Expand All @@ -8,7 +8,7 @@ on:
- develop

jobs:
push_to_registry:
docker:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/stats.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on:
schedule:
# Run this once per day, towards the end of the day for keeping the most
# recent data point most meaningful (hours are interpreted in UTC).
- cron: "0 23 * * *"
workflow_dispatch: # Allow for running this manually.

jobs:
j1:
name: Starport Repository Statistics
runs-on: ubuntu-latest
steps:
- name: run-ghrs
uses: jgehrcke/github-repo-stats@v1.1.0
with:
ghtoken: ${{ secrets.ghrs_github_api_token }}

4 changes: 2 additions & 2 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test-Integration
name: Test

on:
pull_request:
Expand All @@ -8,7 +8,7 @@ on:
- develop

jobs:
test:
integration:
runs-on: ubuntu-latest

steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Lint
name: Test
on:
pull_request:
push:
branches:
- master
- develop
jobs:
golangci:
lint:
name: golangci-lint
runs-on: ubuntu-latest
timeout-minutes: 6
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: "Semantic PR"
name: Test

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
main:
semantic_pr:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v1.2.0
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# run unit tests for Starport.
name: Test

on:
Expand Down
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ brews:
name: "homebrew-tap"
install: |
bin.install "starport"

4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ RUN --mount=type=cache,target=/root/.cache/go-build go install -v ./...
#
FROM base

COPY --from=builder /go/bin/starport /usr/bin

RUN useradd -ms /bin/bash tendermint
USER tendermint

COPY --from=builder /go/bin/starport /usr/bin

WORKDIR /apps

# see docs for exposed ports:
Expand Down
54 changes: 48 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,25 +1,67 @@
#! /usr/bin/make -f

# Project variables.
PROJECT_NAME = starport
DATE := $(shell date '+%Y-%m-%dT%H:%M:%S')
VERSION = $(shell git describe --tags)
VERSION = development
HEAD = $(shell git rev-parse HEAD)
LD_FLAGS = -X github.com/tendermint/starport/starport/internal/version.Version='$(VERSION)' \
-X github.com/tendermint/starport/starport/internal/version.Head='$(HEAD)' \
-X github.com/tendermint/starport/starport/internal/version.Date='$(DATE)'
BUILD_FLAGS = -mod=readonly -ldflags='$(LD_FLAGS)'
BUILD_FOLDER = ./dist

pre-build:
@git fetch --tags

install: pre-build
## install: Install de binary.
install:
@echo Installing Starport...
@go install $(BUILD_FLAGS) ./...
@starport version

## build: Build the binary.
build:
@echo Building Starport...
@-mkdir -p $(BUILD_FOLDER) 2> /dev/null
@go build $(BUILD_FLAGS) -o $(BUILD_FOLDER) ./...

## clean: Clean build files. Also runs `go clean` internally.
clean:
@echo Cleaning build cache...
@-rm -rf $(BUILD_FOLDER) 2> /dev/null
@go clean ./...

## govet: Run go vet.
govet:
@echo Running go vet...
@go vet ./...

## format: Run gofmt.
format:
@echo Formatting...
@find . -name '*.go' -type f | xargs gofmt -d -s

## lint: Run Golang CI Lint.
lint:
@echo Running gocilint...
@golangci-lint run --out-format=tab --issues-exit-code=0

## test-unit: Run the unit tests.
test-unit:
@echo Running unit tests...
@go test -race -failfast -v ./starport/...

## test-integration: Run the integration tests.
test-integration: install
@echo Running integration tests...
@go test -race -failfast -v -timeout 60m ./integration/...

## test: Run unit and integration tests.
test: govet test-unit test-integration

help: Makefile
@echo
@echo " Choose a command run in "$(PROJECT_NAME)", or just run 'make' for install"
@echo
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
@echo

.DEFAULT_GOAL := install
.DEFAULT_GOAL := install
3 changes: 3 additions & 0 deletions actions/cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM starport/cli:develop

USER root
5 changes: 5 additions & 0 deletions actions/cli/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: cli
description: Starport CLI
runs:
using: docker
image: Dockerfile
22 changes: 22 additions & 0 deletions actions/cli/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Starport CLI Action
This action makes the `starport` CLI available as a Github Action.

## Quick start

Add a new workflow to your repo:

```yml
on: push

jobs:
help:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Print Help
uses: tendermint/starport/actions/cli@develop
with:
args: -h
```
50 changes: 50 additions & 0 deletions actions/release/vars/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: vars
description: Outputs variables that can be useful while creating a release
outputs:
should_release:
description: Indicates whether a release should be created or not
value: ${{ steps.vars.outputs.should_release }}
is_release_type_latest:
description: Shows if release type is latest (not a v* release)
value: ${{ steps.vars.outputs.is_release_type_latest }}
tag_name:
description: Name of the tag that should be used for release
value: ${{ steps.vars.outputs.tag_name }}
tarball_prefix:
description: A prefix to use in tarball asset names
value: ${{ steps.vars.outputs.tarball_prefix }}
runs:
using: "composite"
steps:
- id: vars
run: |
repo_name=${GITHUB_REPOSITORY##*/}
ref_name=${GITHUB_REF##*/}
default_branch=$(git remote show origin | awk '/HEAD branch/ {print $NF}')

should_release=true
is_release_type_latest=false
tag_name=""

if [[ $GITHUB_REF == refs/tags/* ]]
then
tag_name=$ref_name
elif [[ $GITHUB_REF == refs/heads/* && $ref_name == $default_branch ]]
then
tag_name=latest
is_release_type_latest=true
else
should_release=false
fi

echo ::set-output name=should_release::$should_release
echo ::set-output name=is_release_type_latest::$is_release_type_latest
echo ::set-output name=tag_name::$tag_name
echo ::set-output name=tarball_prefix::"$repo_name"_$tag_name
shell: bash
- run: |
echo "- should_release: ${{ steps.vars.outputs.should_release }}"
echo "- is_release_type_latest: ${{ steps.vars.outputs.is_release_type_latest }}"
echo "- tag_name: ${{ steps.vars.outputs.tag_name }}"
echo "- tarball_prefix: ${{ steps.vars.outputs.tarball_prefix }}"
shell: bash
37 changes: 36 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
# Changelog

## v0.17

### Features:

- Added GitHub action that automatically builds and releases a binary
- The `--release` flag for the `build` command adds the ability to release binaries in a tarball with a checksum file.
- Added the flag `--no-module` to the command `starport app` to prevent scaffoldin B430 g a default module when creating a new app
- Added `--dep` flag to specify module dependency when scaffolding a module
- Added support for multiple naming conventions for component names and field names
- Print created and modified files when scaffolding a new component
- Added `starport generate` namespace with commands to generate Go, Vuex and OpenAPI
- Added `starport chain init` command to initialize a chain without starting a node
- Scaffold a type that contains a single instance in the store
- Introduced `starport tools` command for advanced users. Existing `starport relayer lowlevel *` commands are also moved under `tools`.
- Added `faucet.rate_limit_window` property to `config.yml`
- Simplified the `cmd` package in the template
- Added `starport scaffold band` oracle query scaffolding
- Updated TypeScript relayer to 0.2.0
- Added customizable gas limits for the relayer

### Fixes:

- Use snake case for generated files
- Prevent using incorrect module name
- Fixed permissions issue when using Starport in Docker
- Ignore hidden directories when building a chain
- Fix error when scaffolding an IBC module in non-Starport chains

## `v0.16.2`

### Fix:

- Prevent indirect Buf dependency.

## `v0.16.1`

### Features:
Expand Down Expand Up @@ -69,7 +103,8 @@
- Integrated Stargate app's `scripts/protocgen` into Starport as a native feature. Running `starport build/serve` will automatically take care of building proto files without a need of script in the app's source code.
- Integrated third-party proto-files used by Cosmos SDK modules into Starport CLI
- Added ability to customize binary name with `build.binary` in `config.yml`
- Added ability to change path to home directory with `init.home` in `config.yml`
- Added ability to change path to home directory with `
.home` in `config.yml`
- Added ability to add accounts by `address` with in `config.yml`
- Added faucet functionality available on port 4500 and configurable with `faucet` in `config.yml`
- Added `starport faucet [address] [coins]` command
Expand Down
Loading
0