-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
1,872 additions
and
90 deletions.
There are no files selected for viewing
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,6 +1,6 @@ | ||
# [Choice] Debian OS version (use bullseye on local arm64/Apple Silicon): buster, bullseye | ||
ARG VARIANT="bullseye" | ||
FROM golang:1.20.4 | ||
FROM golang:1.21 | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
|
@@ -14,10 +14,6 @@ RUN apt-get -y install --no-install-recommends vim | |
# WASM dependencies + Rustup | ||
RUN apt-get -y install --no-install-recommends binaryen | ||
|
||
# Cosmos dependencies | ||
# Sadly Ignite + Cosmos SDK v0.47.x is broken atm | ||
# RUN curl https://get.ignite.com/cli@nightly! | bash | ||
|
||
# Go language extension dependencies | ||
RUN go install github.com/cweill/gotests/[email protected] | ||
RUN go install github.com/fatih/[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 |
---|---|---|
|
@@ -10,6 +10,8 @@ on: | |
|
||
permissions: | ||
contents: read | ||
repository-projects: read | ||
packages: read | ||
|
||
concurrency: | ||
group: ci-${{ github.ref }}-tests | ||
|
@@ -18,6 +20,9 @@ concurrency: | |
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
GOPRIVATE: github.com/sedaprotocol/vrf-go | ||
PAT: ${{ secrets.PAT }} | ||
strategy: | ||
matrix: | ||
arch: [amd64, arm64] | ||
|
@@ -46,6 +51,9 @@ jobs: | |
env: | ||
GOOS: ${{ matrix.targetos }} | ||
GOARCH: ${{ matrix.arch }} | ||
- name: Configure private token | ||
run: | | ||
git config --global url."https://${PAT}@github.com/".insteadOf "https://github.com/" | ||
- name: Compile | ||
if: steps.cache-binaries.outputs.cache-hit != 'true' && env.GIT_DIFF | ||
run: | | ||
|
@@ -54,6 +62,9 @@ jobs: | |
tests: | ||
runs-on: ubuntu-latest | ||
env: | ||
GOPRIVATE: github.com/sedaprotocol/vrf-go | ||
PAT: ${{ secrets.PAT }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v4 | ||
|
@@ -62,6 +73,7 @@ jobs: | |
check-latest: true | ||
cache: true | ||
cache-dependency-path: go.sum | ||
- run: git config --global url.https://${PAT}@github.com/.insteadOf https://github.com/ | ||
- uses: technote-space/[email protected] | ||
id: git_diff | ||
with: | ||
|
@@ -84,20 +96,29 @@ jobs: | |
|
||
test-e2e: | ||
runs-on: ubuntu-latest | ||
env: | ||
GOPRIVATE: github.com/sedaprotocol/vrf-go | ||
USERNAME: hacheigriega | ||
PAT: ${{ secrets.PAT }} | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.21" | ||
- uses: actions/checkout@v4 | ||
- run: git config --global url.https://${GITHUB_TOKEN}@github.com/.insteadOf https://github.com/ | ||
- uses: technote-space/[email protected] | ||
with: | ||
PATTERNS: | | ||
**/**.go | ||
go.mod | ||
go.sum | ||
- name: Build e2e Docker Image | ||
run: make docker-build-e2e | ||
- name: Test E2E | ||
run: make test-e2e | ||
|
||
- name: Create .netrc file | ||
run: | | ||
echo "machine github.com" > ${GITHUB_WORKSPACE}/.netrc | ||
echo " login ${USERNAME}" >> ${GITHUB_WORKSPACE}/.netrc | ||
echo " password ${PAT}" >> ${GITHUB_WORKSPACE}/.netrc | ||
chmod 600 ${GITHUB_WORKSPACE}/.netrc | ||
- name: Test e2e | ||
run: | | ||
make test-e2e |
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 @@ | ||
package params | ||
|
||
import ( | ||
"github.com/cosmos/cosmos-sdk/client" | ||
"github.com/cosmos/cosmos-sdk/codec" | ||
"github.com/cosmos/cosmos-sdk/codec/types" | ||
) | ||
|
||
// EncodingConfig specifies the concrete encoding types to use for a given app. | ||
// This is provided for compatibility between protobuf and amino implementations. | ||
type EncodingConfig struct { | ||
InterfaceRegistry types.InterfaceRegistry | ||
Codec codec.Codec | ||
Marshaler codec.Codec | ||
TxConfig client.TxConfig | ||
Amino *codec.LegacyAmino | ||
} |
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
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.