From f9e7734d9b66d08f56f14b606d21576525f2d436 Mon Sep 17 00:00:00 2001 From: Norman Meier Date: Thu, 4 Jan 2024 14:10:17 +0100 Subject: [PATCH] chore: CI Signed-off-by: Norman Meier --- .github/workflows/go.yml | 32 ++++++++++++++++++++++++++++++++ Dockerfile | 2 +- go.mod | 3 +-- go.sum | 1 - 4 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..33675bd --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,32 @@ +name: Go + +on: + push: + branches: + - main + pull_request: + +jobs: + go: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-go@v3 + with: + go-version: "1.19" + + - name: Tidy go.mod + run: go mod tidy + + - name: Check diff + run: git diff --exit-code + + - name: Build + run: go build ./... + + - name: Test + run: go test ./... + + - name: Check diff + run: git diff --exit-code diff --git a/Dockerfile b/Dockerfile index a4213c3..a2f922e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -ARG GO_VERSION="1.18" +ARG GO_VERSION="1.19" ARG RUNNER_IMAGE="gcr.io/distroless/static" # -------------------------------------------------------- diff --git a/go.mod b/go.mod index 6a4f890..c273e36 100644 --- a/go.mod +++ b/go.mod @@ -1,12 +1,11 @@ module github.com/TERITORI/teritori-chain -go 1.17 +go 1.19 require ( github.com/CosmWasm/wasmd v0.28.0 github.com/cosmos/cosmos-sdk v0.45.10 github.com/cosmos/ibc-go/v3 v3.4.0 - github.com/cosmos/interchain-accounts v0.1.0 github.com/ethereum/go-ethereum v1.10.16 github.com/gagliardetto/solana-go v1.2.0 github.com/gogo/protobuf v1.3.3 diff --git a/go.sum b/go.sum index 251fbf0..76f574c 100644 --- a/go.sum +++ b/go.sum @@ -249,7 +249,6 @@ github.com/cosmos/iavl v0.19.3/go.mod h1:X9PKD3J0iFxdmgNLa7b2LYWdsGd90ToV5cAONAp github.com/cosmos/ibc-go/v3 v3.4.0 h1:ha3cqEG36pqMWqA1D+kxDWBTZXpeFMd/aZIQF7I0xro= github.com/cosmos/ibc-go/v3 v3.4.0/go.mod h1:VwB/vWu4ysT5DN2aF78d17LYmx3omSAdq6gpKvM7XRA= github.com/cosmos/interchain-accounts v0.1.0 h1:QmuwNsf1Hxl3P5GSGt7Z+JeuHPiZw4Z34R/038P5T6s= -github.com/cosmos/interchain-accounts v0.1.0/go.mod h1:Fv6LXDs+0ng4mIDVWwEJMXbAIMxY4kiq+A7Bw1Fb9AY= github.com/cosmos/ledger-cosmos-go v0.11.1 h1:9JIYsGnXP613pb2vPjFeMMjBI5lEDsEaF6oYorTy6J4= github.com/cosmos/ledger-cosmos-go v0.11.1/go.mod h1:J8//BsAGTo3OC/vDLjMRFLW6q0WAaXvHnVc7ZmE8iUY= github.com/cosmos/ledger-go v0.9.2 h1:Nnao/dLwaVTk1Q5U9THldpUMMXU94BOTWPddSmVB6pI=