Skip to content

Commit

Permalink
Merge branch 'main' into dwedul/1658-exchange-module
Browse files Browse the repository at this point in the history
  • Loading branch information
SpicyLemon committed Sep 20, 2023
2 parents 9c823c1 + c24e1de commit 218875b
Show file tree
Hide file tree
Showing 127 changed files with 12,952 additions and 966 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: 'changelog'
on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
- labeled
- unlabeled

permissions:
contents: write

jobs:
changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Depending on your needs, you can use a token that will re-trigger workflows
# See https://github.com/stefanzweifel/git-auto-commit-action#commits-of-this-action-do-not-trigger-new-workflow-runs
token: ${{ secrets.GITHUB_TOKEN }}

# All commits must be signed, import key and sign commit of updated change log.
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
# Use a key associated with the provenanceio-bot github account.
gpg_private_key: ${{ secrets.BOT_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.BOT_GPG_PRIVATE_KEY_PW }}
git_user_signingkey: true
git_commit_gpgsign: true

- uses: dangoslen/dependabot-changelog-helper@v3
with:
version: ${{ needs.setup.outputs.version }}
activationLabel: 'dependencies'
changelogPath: './CHANGELOG.md'

# This step is required for committing the changes to your branch.
# See https://github.com/stefanzweifel/git-auto-commit-action#commits-of-this-action-do-not-trigger-new-workflow-runs
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_user_name: "Provenance-io Bot"
commit_user_email: "[email protected]"
commit_options: "-S"
commit_message: "Updated Changelog"
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Docker Build and Push
# Build & Push builds the simapp docker image on every push to master
# and pushes the image to https://hub.docker.com/u/provenanceio
on:
pull_request:

push:
branches:
- main
Expand All @@ -24,7 +22,7 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup go
Expand Down Expand Up @@ -60,16 +58,16 @@ jobs:
echo "created=$created" >> "$GITHUB_OUTPUT"
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Publish to Docker Hub
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
target: run
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ jobs:
golangci:
name: golangci-lint
runs-on: ubuntu-latest
timeout-minutes: 6
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: technote-space/[email protected]
with:
PATTERNS: |
Expand All @@ -29,12 +28,12 @@ jobs:
- uses: actions/setup-go@v4
if: env.GIT_DIFF
with:
go-version: '1.20'
- uses: golangci/golangci-lint-action@v3.7.0
go-version: '1.21'
- uses: golangci/golangci-lint-action@v3
if: env.GIT_DIFF
with:
# If you change this version, be sure to also change it in contrib/devtools/Makefile.
version: v1.52.2
version: v1.54
args: --timeout 10m --out-${NO_FUTURE}format colored-line-number
github-token: ${{ secrets.github_token }}
- name: No Now Usage
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/proto-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Buf setup action
uses: bufbuild/[email protected]
- name: Buf push 'third_party/proto'
Expand All @@ -38,7 +38,7 @@ jobs:
buf_token: ${{ secrets.BUF_TOKEN }}
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
uses: crazy-max/ghaction-import-gpg@v6
with:
# Use a key associated with the provenanceio-bot github account.
gpg_private_key: ${{ secrets.BOT_GPG_PRIVATE_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
name: Protobuf Checks
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup go
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
name: Build OSX
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v4
with:
Expand All @@ -91,7 +91,7 @@ jobs:
LD_LIBRARY_PATH: /usr/local/lib:/usr/local/lib/x86_64-linux-gnu
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v4
with:
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
LD_LIBRARY_PATH: /usr/local/lib:/usr/local/lib/x86_64-linux-gnu
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v4
with:
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
name: Protobuf Push
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Buf setup action
uses: bufbuild/[email protected]
- name: Buf push 'proto/'
Expand All @@ -175,7 +175,7 @@ jobs:
name: Create Release
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Create release ${{ needs.build_init.outputs.version }}
uses: actions/create-release@v1
id: create_release
Expand All @@ -199,7 +199,7 @@ jobs:
name: Attach Release Artifacts
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v4
with:
Expand Down Expand Up @@ -277,7 +277,7 @@ jobs:
name: Java/Kotlin Proto Publishing
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Java Setup
uses: actions/setup-java@v3
Expand Down Expand Up @@ -317,7 +317,7 @@ jobs:
name: NPM Proto Publishing
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Publish
uses: provenance-io/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rosetta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: technote-space/[email protected]
with:
PATTERNS: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/sims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
if: "!contains(github.event.head_commit.message, 'skip-sims')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: technote-space/[email protected]
with:
PATTERNS: |
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
if: needs.setup.outputs.should-run
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Output setup
run: |
echo " go-version: [${{ needs.setup.outputs.go-version }}]"
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/cache@v3
name: Load go cache
with:
Expand Down Expand Up @@ -202,7 +202,7 @@ jobs:
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/cache@v3
name: Load db cache
with:
Expand Down Expand Up @@ -260,7 +260,7 @@ jobs:
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/cache@v3
name: Load go cache
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
setup-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: technote-space/[email protected]
with:
PATTERNS: |
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
env:
LD_LIBRARY_PATH: /usr/local/lib:/usr/local/lib/x86_64-linux-gnu
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# CodeCov requires fetch-depth > 1
fetch-depth: 2
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
# it's in the steps below (except the checkout step).
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# CodeCov requires fetch-depth > 1
fetch-depth: 2
Expand Down Expand Up @@ -174,7 +174,7 @@ jobs:
env:
LD_LIBRARY_PATH: /usr/local/lib:/usr/local/lib/x86_64-linux-gnu
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
if: needs.setup-tests.outputs.should-run
with:
Expand Down
6 changes: 6 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ linters-settings:
- github.com/CosmWasm/wasmd
- github.com/CosmWasm/wasmvm/types

# used for interchain queries
- github.com/strangelove-ventures/async-icq/v6
- github.com/strangelove-ventures/async-icq/v6/types
- github.com/strangelove-ventures/async-icq/v6/keeper

- github.com/gogo/protobuf

- github.com/google/uuid
Expand All @@ -112,6 +117,7 @@ linters-settings:
- github.com/spf13/viper

- github.com/stretchr/testify/require # used by the test-utils shared toolkit
- github.com/stretchr/testify/assert
- github.com/stretchr/testify/suite

- github.com/tendermint/tendermint
Expand Down
Loading

0 comments on commit 218875b

Please sign in to comment.