-
Notifications
You must be signed in to change notification settings - Fork 552
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1372 from tendermint/release/v0.17.0
chore: release/v0.17.0
- Loading branch information
Showing
271 changed files
with
10,256 additions
and
3,908 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
*.md @barriebyron | ||
|
||
# Primary repo maintainers | ||
* @fadeev @ilgooz @lubtd @dshulyak | ||
* @fadeev @ilgooz @lubtd @Pantani |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | ||
with: | ||
ghtoken: ${{ secrets.ghrs_github_api_token }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
.github/workflows/semantic-pull-request.yml → .github/workflows/test-semantic.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# run unit tests for Starport. | ||
name: Test | ||
|
||
on: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ brews: | |
name: "homebrew-tap" | ||
install: | | ||
bin.install "starport" | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM starport/cli:develop | ||
|
||
USER root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name: cli | ||
description: Starport CLI | ||
runs: | ||
using: docker | ||
image: Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.