Skip to content

Commit

Permalink
Merge branch 'master' into clevinson/isolated-cmd-test
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanchristo committed Aug 5, 2022
2 parents d74199c + 500dd13 commit d29448f
Show file tree
Hide file tree
Showing 822 changed files with 338,843 additions and 208,906 deletions.
43 changes: 27 additions & 16 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,43 @@
#
# This codecov.yml is the default configuration for
# all repositories on Codecov. You may adjust the settings
# below in your own codecov.yml in your repository.
# Codecov Docs:
# https://docs.codecov.com/docs
#
# Codecov Reports:
# https://app.codecov.io/gh/regen-network/regen-ledger
#
coverage:
precision: 2
round: down
range: 70...100

status:
# Learn more at https://codecov.io/docs#yaml_default_commit_status
project:
default:
threshold: 1% # allow this much decrease on project
threshold: 1%
app:
paths:
- "app/"
types:
paths:
- "types/"
data:
paths:
- "x/data/"
ecocredit:
paths:
- "x/ecocredit/"
changes: false

comment:
layout: "header, diff, flags"
behavior: default # update if exists else create new
layout: "diff, flags, files"
behavior: default
require_changes: true

ignore:
- "docs"
- "*.md"
- "*.org"
- "build"
- "tests/*"
- "contrib"
- "mocks"
- "**/mocks"
- "**/simulation"
- "**/*.cosmos_orm.go"
- "**/*.pb.go"
- "**/*.pb.gw.go"
- "scripts"

- "**/*.pulsar.go"
- "**/statik.go"
6 changes: 5 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
[Makefile]
indent_style = tab
indent_style = tab

[*.proto]
indent_style = space
indent_size = 2
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ about: Create a proposal to request a feature

<!-- Why do we need this feature?
What problems may be addressed by introducing this feature?
What benefits does the SDK stand to gain by including this feature?
What benefits does Regen Ledger stand to gain by including this feature?
Are there any disadvantages of including this feature? -->

## Proposal
Expand Down
35 changes: 26 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,37 @@ on:
push:
branches:
- master
- release/v*

jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
envs: ["stable-build", "release-build"]
steps:
- name: Install Go
-
uses: actions/checkout@v2
with:
fetch-depth: 0
-
uses: actions/[email protected]
with:
go-version: 1.17
- name: Checkout code
uses: actions/checkout@v2
- name: Display go version
run: go version
- name: make build
go-version: 1.18
-
name: Build stable
if: matrix.envs == 'stable-build'
run: make build
- name: make experimental build
run: EXPERIMENTAL=true make build
-
name: Run release setup
if: matrix.envs == 'release-build'
run: ./scripts/release-setup.sh
shell: bash
-
name: Build release
if: matrix.envs == 'release-build'
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: build --skip-validate --rm-dist
43 changes: 0 additions & 43 deletions .github/workflows/goreleaser.yml

This file was deleted.

17 changes: 10 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,21 @@ jobs:
golangci:
name: golangci-lint
runs-on: ubuntu-latest
timeout-minutes: 6
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v4
- uses: actions/setup-go@v3
with:
go-version: 1.18
- uses: technote-space/[email protected]
id: git_diff
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- uses: golangci/golangci-lint-action@master
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.28
args: --timeout 10m
github-token: ${{ secrets.github_token }}
version: latest
args: --out-format=tab
skip-go-installation: true
if: env.GIT_DIFF
20 changes: 20 additions & 0 deletions .github/workflows/proto-registry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Proto-Registry
# Push updated proto files to https://buf.build/regen/regen-ledger
# This workflow is only run when a .proto file has been changed
on:
push:
branches:
- master
paths:
- 'proto/**'

jobs:
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: bufbuild/buf-setup-action@v1
- uses: bufbuild/buf-push-action@v1
with:
input: 'proto'
buf_token: ${{ secrets.BUF_TOKEN }}
28 changes: 20 additions & 8 deletions .github/workflows/proto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,30 @@ name: Protobuf
on:
pull_request:
paths:
- '**.proto'
- 'proto/**'
push:
branches:
- master
paths:
- 'proto/**'

jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@master
- name: lint
run: make proto-lint
breakage:
- uses: actions/checkout@v2
- uses: bufbuild/buf-setup-action@v1
- uses: bufbuild/buf-lint-action@v1
with:
input: 'proto'

break-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: check-breakage
run: make proto-check-breaking
- uses: actions/checkout@v2
- uses: bufbuild/buf-setup-action@v1
- uses: bufbuild/buf-breaking-action@v1
with:
input: 'proto'
against: 'https://github.com/${{ github.repository }}.git#branch=${{ github.event.pull_request.base.ref }},ref=HEAD~1,subdir=proto'
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release

on:
push:
tags:
- v*

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2
with:
fetch-depth: 0
-
uses: actions/setup-go@v2
with:
go-version: 1.18
-
name: Run release setup
run: ./scripts/release-setup.sh
shell: bash
-
name: Build and release
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70 changes: 70 additions & 0 deletions .github/workflows/sims-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Sims Nightly

on:
schedule:
# Runs "at 1am every day"
- corn: "0 0 * * *"
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip-sims')"
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
go-version: 1.18
- name: Display go version
run: go version
- run: make build

install-runsim:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/[email protected]
with:
go-version: 1.18
- name: Display go version
run: go version
- name: Install runsim
run: export GO111MODULE="on" && go install github.com/cosmos/tools/cmd/[email protected]
- uses: actions/[email protected]
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary

sim-after-import:
runs-on: ubuntu-latest
needs: [build, install-runsim]
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
go-version: 1.18
- name: Display go version
run: go version
- uses: actions/[email protected]
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
- name: sim-after-import
run: |
make sim-regen-after-import
sim-fullapp:
runs-on: ubuntu-latest
needs: [build, install-runsim]
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
go-version: 1.18
- name: Display go version
run: go version
- uses: actions/[email protected]
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
- name: sim-fullapp
run: |
make sim-regen-fast
Loading

0 comments on commit d29448f

Please sign in to comment.