Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/github_actions/docker/build-push-…
Browse files Browse the repository at this point in the history
…action-5
  • Loading branch information
mergify[bot] authored Oct 26, 2023
2 parents 674154b + c21aa7c commit 8424ef1
Show file tree
Hide file tree
Showing 39 changed files with 26,380 additions and 21,535 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/autopr.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/check-generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: arduino/setup-protoc@v2

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "16"
- run: if [ ! -x "$(command -v yarn)" ]; then npm install -g yarn; fi
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/ci-smart-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

env:
TEST_DOCKER_IMAGE: finschianode:smartcontractci
GO_VERSION: "1.20"

jobs:
cleanup-runs:
Expand Down Expand Up @@ -60,9 +61,9 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.18
go-version: ${{ env.GO_VERSION }}
- name: Build
run: GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=false make build
run: GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=false LINK_STATICALLY=true make build
- name: Upload build
uses: actions/upload-artifact@v3
with:
Expand All @@ -80,7 +81,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.18
go-version: ${{ env.GO_VERSION }}
- name: Download smart contracts
uses: dsaltares/fetch-gh-release-asset@master
with:
Expand Down Expand Up @@ -118,7 +119,7 @@ jobs:
if: ${{ needs.check-diffs.outputs.get_diff }}
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- uses: docker/setup-buildx-action@v3
- name: Build and export
uses: docker/build-push-action@v5
with:
Expand All @@ -141,7 +142,7 @@ jobs:
versions: ${{ fromJson(needs.get-cosmwasm-releases.outputs.cosmwasm_versions) }}
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- uses: docker/setup-buildx-action@v3
- name: Download smart contracts
uses: dsaltares/fetch-gh-release-asset@master
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- name: Set up docker buildx
id: buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
endpoint: buildx
config-inline: |
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Check Make Format
# this workflow checks that go files is formated by `make format`
on:
pull_request:
push:
branches:
- main

jobs:
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Display go version
run: go version
- uses: actions/cache@v3
id: cache
with:
path: ~/go/bin
key: ${{ runner.os }}-go-v1.20-misspell-v0.3.4-goimports-reviser-v3.4.5
- name: install misspell
if: steps.cache.outputs.cache-hit != 'true'
run: |
go install github.com/client9/misspell/cmd/[email protected]
- name: install goimports-reviser
if: steps.cache.outputs.cache-hit != 'true'
run: |
go install github.com/incu6us/goimports-reviser/[email protected]
- name: Make Format
run: make format
- name: Check Diff
run: git diff --exit-code
150 changes: 0 additions & 150 deletions .github/workflows/release-build.yml

This file was deleted.

26 changes: 17 additions & 9 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,31 @@ name: Release
# This workflow helps with creating releases.
# This job will only be triggered when a tag (vX.X.x) is pushed
on:
# can be used to re-release an existing tag
workflow_dispatch:

push:
# Sequence of patterns matched against refs/tags
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]+*" # Push events to matching v*, i.e. v1.0, v20.15.10

permissions:
contents: write
packages: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Create release
uses: goreleaser/goreleaser-action@v4
- uses: actions/checkout@v4
with:
args: release --clean --release-notes ./RELEASE_CHANGELOG.md
fetch-depth: 0
ref: ${{ github.event.inputs.release_tag }}

- run: git fetch --force --tags

- name: Build & publish release
run: |
make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 8 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -335,3 +335,11 @@ jobs:
if [ ${{ steps.test-blocks.outcome }} == 'failure' ] ; then
exit 1
fi
test-upgrade-name:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test upgrade name
run: |
make test-upgrade-name
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ docs/_build
docs/tutorial
dist
tools-stamp
temp

# Data - ideally these don't exist
baseapp/data/*
Expand Down
Loading

0 comments on commit 8424ef1

Please sign in to comment.