Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(evm): ethers.js tests for evm #1896

Merged
merged 43 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
faa464b
test(evm): eth api integration test suite
onikonychev May 18, 2024
5d9b532
test(evm): more integration tests for eth api
onikonychev May 20, 2024
fbf929d
feat: implemented basic evm tx methods
onikonychev May 20, 2024
0489f85
chore: lint
onikonychev May 20, 2024
d44aa45
chore: lint
onikonychev May 20, 2024
1c5f574
chore: lint
onikonychev May 20, 2024
ec9beb1
chore: extracted evm chain_id to appconst
onikonychev May 20, 2024
a3b7b6b
fix: tests
onikonychev May 20, 2024
e110347
Merge branch 'ud/eth' into on/evm-query-tests
Unique-Divine May 21, 2024
14aae36
Merge branch 'ud/eth' into on/evm-query-tests
Unique-Divine May 21, 2024
4213a19
chore: resolve conflicts
onikonychev May 22, 2024
79516f5
fix: tests
onikonychev May 22, 2024
91d9e4c
fix: lint
onikonychev May 22, 2024
a6a5409
chore: cleanup
onikonychev May 22, 2024
e38b9a5
Merge branch 'on/evm-tx' into on/evm-query-tests
onikonychev May 22, 2024
48d32e2
Merge branch 'ud/eth' into on/evm-query-tests
Unique-Divine May 22, 2024
9001ade
Merge branch 'on/evm-query-tests' of https://github.com/NibiruChain/n…
Unique-Divine May 22, 2024
a7731b7
refactor: merge
Unique-Divine May 22, 2024
dfd49a8
fix: eth chain ID test
Unique-Divine May 22, 2024
f8d2b3a
fix(eth): chain ID
Unique-Divine May 22, 2024
6290748
linter fix
Unique-Divine May 22, 2024
0b4931a
Merge branch 'ud/eth' of github.com:NibiruChain/nibiru into on/evm-qu…
onikonychev May 23, 2024
f5b61ce
test(evm): integration tests for tx and smart contract
onikonychev May 23, 2024
789e143
fix: lint
onikonychev May 23, 2024
4043354
chore(evm): disabled json rpc by default
onikonychev May 23, 2024
85430a3
test(evm): ethers.js tests for evm
onikonychev May 25, 2024
9abfb26
test(evm): github workflow
onikonychev May 25, 2024
8a13dc8
fix: gh actions evm tests npm instead of yarn
onikonychev May 25, 2024
1fdf2ba
fix: evm gh tests
onikonychev May 25, 2024
000dd55
fix: evm gh tests
onikonychev May 25, 2024
331e6d7
fix: evm gh tests
onikonychev May 25, 2024
502cb48
chore: cleanup
onikonychev May 25, 2024
cc674fb
Merge branch 'ud/eth' of github.com:NibiruChain/nibiru into on/evm-qu…
onikonychev May 27, 2024
85660cf
chore: resolve conflicts
onikonychev May 27, 2024
c8c7aeb
chore: renamed evm job
onikonychev May 27, 2024
78462ce
Merge branch 'ud/eth' into on/evm-js-tests
Unique-Divine May 27, 2024
6f14d75
refactor: merge conflict rever
Unique-Divine May 27, 2024
779c1aa
refactor(e2e): consistent path
Unique-Divine May 27, 2024
90e70d3
chore: cleanup unused
Unique-Divine May 27, 2024
74c4368
wip!: try removing chain ID hacks
Unique-Divine May 27, 2024
65d1a36
wip!: try removing chain ID hacks
Unique-Divine May 27, 2024
cb6912d
Merge branch 'on/evm-js-tests' of https://github.com/NibiruChain/nibi…
Unique-Divine May 27, 2024
fec4a43
chore: linter
Unique-Divine May 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 83 additions & 0 deletions .github/workflows/e2e-evm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: EVM e2e tests

on:
pull_request:
paths:
[
"**.go",
"**.proto",
"go.mod",
"go.sum",
"**go.mod",
"**go.sum",
"contrib/docker/*",
"**.js",
"**.json",
]

# Allow concurrent runs on main/release branches but isolates other branches
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
cancel-in-progress: ${{ ! (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')) }}

jobs:
ethers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
cache: true

# Use GitHub actions output paramters to get go paths. For more info, see
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions
- name: "Set output variables for go cache"
id: go-cache-paths
run: |
echo "go-build-cache=$(go env GOCACHE)" >> $GITHUB_OUTPUT
echo "go-mod-cache=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT

- name: "Go build cache"
uses: actions/cache@v4
with:
path: ${{ steps.go-cache-paths.outputs.go-build-cache }}
key: go-build-cache-${{ hashFiles('**/go.sum') }}

- name: "Go mod cache"
uses: actions/cache@v4
with:
path: ${{ steps.go-cache-paths.outputs.go-mod-cache }}
key: go-mod-cache-${{ hashFiles('**/go.sum') }}

- name: "Install just"
# casey/just: https://just.systems/man/en/chapter_6.html
# taiki-e/install-action: https://github.com/taiki-e/install-action
uses: taiki-e/install-action@just

- name: "Build the nibid binary"
run: |
just install

- name: Setup NodeJS with npm caching
uses: actions/setup-node@v4
with:
node-version: 18

- name: NPM Install
run: npm install
working-directory: "e2e/evm"

- name: "Launch localnet"
run: |
just localnet --no-build &
sleep 6

- name: Run tests
run: npm test
working-directory: "e2e/evm"
env:
JSON_RPC_ENDPOINT: http://127.0.0.1:8545
MNEMONIC: guard cream sadness conduct invite crumble clock pudding hole grit liar hotel maid produce squeeze return argue turtle know drive eight casino maze host
Loading
Loading