-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/go_modules/github.com/stretchr/te…
…stify-1.7.1
- Loading branch information
Showing
1,246 changed files
with
64,684 additions
and
18,587 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,42 +1,39 @@ | ||
name: Build & Push | ||
# Build & Push builds the simapp docker image on every push to main and | ||
# and pushes the image to https://hub.docker.com/r/interchainio/simapp/tags | ||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
- "v[0-9]+.[0-9]+.[0-9]+-rc*" # Push events to matching v*, i.e. v1.0-rc1, v20.15.10-rc5 | ||
|
||
env: | ||
registry: docker.io | ||
repository: line/lbm-simapp | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Prepare | ||
id: prep | ||
run: | | ||
DOCKER_IMAGE=interchainio/simapp | ||
VERSION=noop | ||
if [[ $GITHUB_REF == refs/tags/* ]]; then | ||
VERSION=${GITHUB_REF#refs/tags/} | ||
elif [[ $GITHUB_REF == refs/heads/* ]]; then | ||
VERSION=$(echo ${GITHUB_REF#refs/heads/} | sed -r 's#/+#-#g') | ||
if [ "${{ github.event.repository.default_branch }}" = "$VERSION" ]; then | ||
VERSION=latest | ||
fi | ||
fi | ||
TAGS="${DOCKER_IMAGE}:${VERSION}" | ||
if [[ $VERSION =~ ^v[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then | ||
TAGS="$TAGS,${DOCKER_IMAGE}:${VERSION}" | ||
fi | ||
echo ::set-output name=version::${VERSION} | ||
echo ::set-output name=tags::${TAGS} | ||
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: login to the registry | ||
uses: docker/login-action@v1 | ||
if: github.event_name != 'pull_request' | ||
with: | ||
registry: ${{env.registry}} | ||
username: ${{secrets.DOCKERHUB_USERNAME}} | ||
password: ${{secrets.DOCKERHUB_TOKEN}} | ||
- name: extract metadata for docker | ||
id: meta | ||
uses: docker/metadata-action@v3 | ||
with: | ||
images: ${{env.registry}}/${{env.repository}} | ||
tags: | | ||
type=semver,pattern={{version}} | ||
- name: docker build | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: ${{github.event_name != 'pull_request'}} | ||
tags: ${{steps.meta.outputs.tags}} | ||
labels: ${{steps.meta.outputs.labels}} |
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 |
---|---|---|
|
@@ -7,6 +7,6 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: gaurav-nelson/[email protected].11 | ||
- uses: gaurav-nelson/[email protected].14 | ||
with: | ||
folder-path: "docs" |
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 |
---|---|---|
|
@@ -31,7 +31,7 @@ jobs: | |
- name: install runsim | ||
run: | | ||
export GO111MODULE="on" && go get github.com/cosmos/tools/cmd/[email protected] | ||
- uses: actions/cache@v2.1.7 | ||
- uses: actions/cache@v3.0.2 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
|
@@ -41,7 +41,7 @@ jobs: | |
needs: [build, install-runsim] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v2.1.7 | ||
- uses: actions/cache@v3.0.2 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
|
@@ -58,7 +58,7 @@ jobs: | |
needs: [build, install-runsim, test-sim-multi-seed-long-part1] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v2.1.7 | ||
- uses: actions/cache@v3.0.2 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
|
@@ -75,7 +75,7 @@ jobs: | |
needs: [build, install-runsim, test-sim-multi-seed-long-part2] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v2.1.7 | ||
- uses: actions/cache@v3.0.2 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
|
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 |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
if: "!contains(github.event.head_commit.message, 'skip-sims')" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
- uses: actions/setup-go@v3.0.0 | ||
with: | ||
go-version: 1.15 | ||
- name: Display go version | ||
|
@@ -34,14 +34,14 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
- uses: actions/setup-go@v3.0.0 | ||
with: | ||
go-version: 1.15 | ||
- name: Display go version | ||
run: go version | ||
- name: Install runsim | ||
run: export GO111MODULE="on" && go get github.com/cosmos/tools/cmd/[email protected] | ||
- uses: actions/cache@v2.1.7 | ||
- uses: actions/cache@v3.0.2 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
|
@@ -51,7 +51,7 @@ jobs: | |
needs: [build, install-runsim] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
- uses: actions/setup-go@v3.0.0 | ||
with: | ||
go-version: 1.15 | ||
- name: Display go version | ||
|
@@ -63,7 +63,7 @@ jobs: | |
!**/**_test.go | ||
go.mod | ||
go.sum | ||
- uses: actions/cache@v2.1.7 | ||
- uses: actions/cache@v3.0.2 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
|
@@ -78,7 +78,7 @@ jobs: | |
needs: [build, install-runsim] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
- uses: actions/setup-go@v3.0.0 | ||
with: | ||
go-version: 1.15 | ||
- name: Display go version | ||
|
@@ -92,7 +92,7 @@ jobs: | |
go.sum | ||
SET_ENV_NAME_INSERTIONS: 1 | ||
SET_ENV_NAME_LINES: 1 | ||
- uses: actions/cache@v2.1.7 | ||
- uses: actions/cache@v3.0.2 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
|
@@ -107,7 +107,7 @@ jobs: | |
needs: [build, install-runsim] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
- uses: actions/setup-go@v3.0.0 | ||
with: | ||
go-version: 1.15 | ||
- name: Display go version | ||
|
@@ -121,7 +121,7 @@ jobs: | |
go.sum | ||
SET_ENV_NAME_INSERTIONS: 1 | ||
SET_ENV_NAME_LINES: 1 | ||
- uses: actions/cache@v2.1.7 | ||
- uses: actions/cache@v3.0.2 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
|
@@ -136,7 +136,7 @@ jobs: | |
needs: [build, install-runsim] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
- uses: actions/setup-go@v3.0.0 | ||
with: | ||
go-version: 1.15 | ||
- name: Display go version | ||
|
@@ -150,7 +150,7 @@ jobs: | |
go.sum | ||
SET_ENV_NAME_INSERTIONS: 1 | ||
SET_ENV_NAME_LINES: 1 | ||
- uses: actions/cache@v2.1.7 | ||
- uses: actions/cache@v3.0.2 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
if: "!contains(github.event.head_commit.message, 'skip-sims')" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
- uses: actions/setup-go@v3.0.0 | ||
with: | ||
go-version: 1.15 | ||
- name: Display go version | ||
|
@@ -22,14 +22,14 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
- uses: actions/setup-go@v3.0.0 | ||
with: | ||
go-version: 1.15 | ||
- name: Display go version | ||
run: go version | ||
- name: Install runsim | ||
run: export GO111MODULE="on" && go get github.com/cosmos/tools/cmd/[email protected] | ||
- uses: actions/cache@v2.1.7 | ||
- uses: actions/cache@v3.0.2 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
|
@@ -39,12 +39,12 @@ jobs: | |
needs: [build, install-runsim] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
- uses: actions/setup-go@v3.0.0 | ||
with: | ||
go-version: 1.15 | ||
- name: Display go version | ||
run: go version | ||
- uses: actions/cache@v2.1.7 | ||
- uses: actions/cache@v3.0.2 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
|
@@ -57,12 +57,12 @@ jobs: | |
needs: [build, install-runsim] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
- uses: actions/setup-go@v3.0.0 | ||
with: | ||
go-version: 1.15 | ||
- name: Display go version | ||
run: go version | ||
- uses: actions/cache@v2.1.7 | ||
- uses: actions/cache@v3.0.2 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
|
@@ -75,12 +75,12 @@ jobs: | |
needs: [build, install-runsim] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
- uses: actions/setup-go@v3.0.0 | ||
with: | ||
go-version: 1.15 | ||
- name: Display go version | ||
run: go version | ||
- uses: actions/cache@v2.1.7 | ||
- uses: actions/cache@v3.0.2 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-runsim-binary | ||
|
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.