Skip to content

Commit ed13e4a

Browse files
authored
Merge pull request #5 from push-protocol/spawn-with-evm
Spawn with evm
2 parents 6c8ca08 + 8b4669c commit ed13e4a

File tree

157 files changed

+11722
-10268
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+11722
-10268
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: docker image release
2+
3+
# NOTE: For this action to work, you must enable write permissions in your github repository settings.
4+
# Settings -> Actions -> General. "Workflow Permissions". Select "Read and write permissions".
5+
# If you forget to enable, the action will fail on push with a 401 error. Just re-run the failed action after enabling.
6+
7+
on:
8+
push:
9+
tags:
10+
- 'v[0-9]+.[0-9]+.[0-9]+' # ignore rc
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
env:
17+
GO_VERSION: 1.22.3
18+
REGISTRY: ghcr.io
19+
IMAGE_NAME: ${{ github.repository }}
20+
21+
jobs:
22+
release-image:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Check out the repo
26+
uses: actions/checkout@v4
27+
28+
- name: Set up QEMU
29+
uses: docker/setup-qemu-action@v3
30+
31+
# all lowercase ghcr registry
32+
- run: |
33+
DOCKER_REGISTRY=`echo "${{ env.REGISTRY }}/${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]'`
34+
echo "DOCKER_REGISTRY=$DOCKER_REGISTRY" >> $GITHUB_ENV
35+
36+
REPO_NAME=`echo "${{ github.repository }}" | awk -F'/' '{print $2}' | tr '[:upper:]' '[:lower:]'`
37+
echo "REPO_NAME=$REPO_NAME" >> $GITHUB_ENV
38+
39+
- name: Parse tag
40+
id: tag
41+
run: |
42+
# v0.0.1
43+
VERSION=$(echo ${{ github.ref_name }} | sed "s/v//")
44+
# 0.0.1
45+
echo "VERSION=$VERSION" >> $GITHUB_ENV
46+
47+
# build and publish package to ghcr (public) with codebase remaining private
48+
- name: Log in to the Container registry
49+
uses: docker/login-action@v2
50+
with:
51+
registry: ${{ env.REGISTRY }}
52+
username: ${{ github.repository_owner }}
53+
password: ${{ secrets.GITHUB_TOKEN }}
54+
55+
# make sure to update package to be public in repo ghcr settings
56+
- name: Build and push Docker image
57+
uses: strangelove-ventures/heighliner-build-action@v1.0.0
58+
with:
59+
# v0.0.1
60+
git-ref: ${{ github.ref_name }}
61+
chain: ${{ env.REPO_NAME}}
62+
dockerfile: cosmos
63+
registry: ${{ env.DOCKER_REGISTRY }}
64+
build-target: |
65+
cd ..
66+
make install
67+
local: true
68+
binaries: |
69+
- /go/bin/pchaind
70+
build-env: |
71+
- BUILD_TAGS=muslc
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
name: E2E
2+
3+
on:
4+
push:
5+
6+
permissions:
7+
contents: read
8+
packages: write
9+
10+
env:
11+
GO_VERSION: 1.22.3
12+
TAR_PATH: /tmp/docker-image.tar
13+
IMAGE_NAME: docker-image
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
build-docker:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- id: go-cache-paths
24+
run: |
25+
echo "::set-output name=go-build::$(go env GOCACHE)"
26+
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
27+
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
31+
- name: Setup Go ${{ env.GO_VERSION }}
32+
uses: actions/setup-go@v4
33+
with:
34+
go-version: ${{ env.GO_VERSION }}
35+
36+
# Cache go mod cache, used to speedup builds
37+
- name: Go Mod Cache
38+
uses: actions/cache@v4
39+
with:
40+
path: ${{ steps.go-cache-paths.outputs.go-mod }}
41+
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
42+
43+
# Cache go build cache, used to speedup go test
44+
- name: Go Build Cache
45+
uses: actions/cache@v4
46+
with:
47+
path: ${{ steps.go-cache-paths.outputs.go-build }}
48+
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
49+
50+
- name: Download Go Dependencies
51+
run: |
52+
go mod download
53+
cd interchaintest && go mod download
54+
55+
- name: Set up Docker Buildx
56+
uses: docker/setup-buildx-action@v3
57+
58+
- name: Build and export
59+
uses: docker/build-push-action@v5
60+
with:
61+
context: .
62+
tags: pchain:local
63+
outputs: type=docker,dest=${{ env.TAR_PATH }}
64+
65+
- name: Upload artifact
66+
uses: actions/upload-artifact@v4
67+
with:
68+
name: ${{ env.IMAGE_NAME }}
69+
path: ${{ env.TAR_PATH }}
70+
71+
e2e-tests:
72+
needs: build-docker
73+
runs-on: ubuntu-latest
74+
strategy:
75+
matrix:
76+
# names of `make` commands to run tests
77+
test:
78+
- "ictest-basic"
79+
- "ictest-wasm"
80+
- "ictest-tokenfactory"
81+
fail-fast: false
82+
83+
steps:
84+
- id: go-cache-paths
85+
run: |
86+
echo "::set-output name=go-build::$(go env GOCACHE)"
87+
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
88+
89+
- name: Set up Go ${{ env.GO_VERSION }}
90+
uses: actions/setup-go@v4
91+
with:
92+
go-version: ${{ env.GO_VERSION }}
93+
cache-dependency-path: interchaintest/go.sum
94+
95+
- name: checkout chain
96+
uses: actions/checkout@v4
97+
98+
# Cache go build cache, used to speedup go test
99+
- name: Go Build Cache
100+
uses: actions/cache@v4
101+
with:
102+
path: ${{ steps.go-cache-paths.outputs.go-build }}
103+
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
104+
105+
- name: Download Tarball Artifact
106+
uses: actions/download-artifact@v4
107+
with:
108+
name: ${{ env.IMAGE_NAME }}
109+
path: /tmp
110+
111+
- name: Load Docker Image
112+
run: |
113+
docker image load -i ${{ env.TAR_PATH }}
114+
docker image ls -a
115+
116+
- name: Run Test
117+
run: make ${{ matrix.test }}

.github/workflows/link-check.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Check Markdown links
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
markdown-link-check:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: gaurav-nelson/github-action-markdown-link-check@1.0.15
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: PR Title Lint
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
lint-title:
15+
name: Lint PR Title
16+
permissions:
17+
pull-requests: read
18+
statuses: write
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: amannn/action-semantic-pull-request@v5.4.0
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "Release Binary"
2+
3+
# Pairs with .goreleaser.yaml file for configuration.
4+
5+
on:
6+
push:
7+
tags:
8+
- '**'
9+
10+
# Test Locally with:
11+
# goreleaser build --skip-validate --snapshot --clean
12+
13+
jobs:
14+
goreleaser:
15+
permissions: write-all
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2.3.4
20+
with:
21+
fetch-depth: 0
22+
23+
- uses: actions/setup-go@v2
24+
with:
25+
go-version: '1.22.3'
26+
27+
- name: Clean up dist directory
28+
run: rm -rf dist
29+
30+
- name: Build
31+
uses: goreleaser/goreleaser-action@v5
32+
with:
33+
version: latest
34+
args: build --skip-validate
35+
36+
- name: Release
37+
uses: goreleaser/goreleaser-action@v5
38+
if: startsWith(github.ref, 'refs/tags/')
39+
with:
40+
version: latest
41+
args: release --skip-validate --clean
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)