Skip to content

Commit

Permalink
feat(ci): Introduce ethereum/hive testing (berachain#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
archbear authored Jun 1, 2023
1 parent a1096d3 commit 59388b3
Show file tree
Hide file tree
Showing 54 changed files with 2,756 additions and 431 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/hive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# SPDX-License-Identifier: BUSL-1.1
#
# Copyright (C) 2023, Berachain Foundation. All rights reserved.
# Use of this software is govered by the Business Source License included
# in the LICENSE file of this repository and at www.mariadb.com/bsl11.
#
# ANY USE OF THE LICENSED WORK IN VIOLATION OF THIS LICENSE WILL AUTOMATICALLY
# TERMINATE YOUR RIGHTS UNDER THIS LICENSE FOR THE CURRENT AND ALL OTHER
# VERSIONS OF THE LICENSED WORK.
#
# THIS LICENSE DOES NOT GRANT YOU ANY RIGHT IN ANY TRADEMARK OR LOGO OF
# LICENSOR OR ITS AFFILIATES (PROVIDED THAT YOU MAY USE A TRADEMARK OR LOGO OF
# LICENSOR AS EXPRESSLY REQUIRED BY THIS LICENSE).
#
# TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
# AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
# EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
# TITLE.

name: ethereum

on:
pull_request:

jobs:
hive:
strategy:
matrix:
simulator: [polaris/rpc]
namespace: [cosmos]
os: [ubuntu-latest]
go-version: [1.20.4]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Setup Golang
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Cache Golang Deps
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-golang-
- name: Run ${{ matrix.namespace }}:testhive ${{ matrix.simulator }}
uses: magefile/mage-action@v2
with:
version: latest
args: hive:setup ${{ matrix.namespace }}:testhive ${{ matrix.simulator }}
env:
GOPATH: /home/runner/go
2 changes: 2 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ jobs:
with:
version: latest
args: ${{ matrix.args }}
env:
GOPATH: /home/runner/go
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ release/
data/
.DS_Store
*.pyc
*.txt
.vscode/*.log

# upgrades
Expand All @@ -200,6 +199,9 @@ contracts/out/
*/**/*.bin
*/**/*.json

# hive
!e2e/hive/**/genesis.json

# geth
*.rlp

Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "contracts/lib/forge-std"]
path = contracts/lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "contracts/lib/solmate"]
path = contracts/lib/solmate
url = https://github.com/transmissions11/solmate
2 changes: 1 addition & 1 deletion contracts/bindings/cosmos/lib/cosmos_types.abigen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion contracts/bindings/cosmos/polaris_erc20.abigen.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/bindings/testing/consume_gas.abigen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 59388b3

Please sign in to comment.