Skip to content

Commit

Permalink
chore: scheduled basic e2e tests for evm testnet endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
onikonychev committed Nov 6, 2024
1 parent 94db838 commit 724cd43
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/e2e-evm-basic-testnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: EVM E2E Basic Testnet (Scheduled)

on:
schedule:
- cron: "0 * * * *" # every hour at 00 min

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

- name: "just install"
run: just install
working-directory: "evm-e2e"

- name: "Run tests (just test-basic)"
run: just test-basic
working-directory: "evm-e2e"
env:
JSON_RPC_ENDPOINT: https://evm-rpc.testnet-1.nibiru.fi
MNEMONIC: ${{ secrets.WALLET_MNEMONIC_TESTNET }}

- name: Send failure to slack channel
if: always()
uses: ravsamhq/notify-slack-action@v2
with:
status: ${{ job.status }}
notify_when: "failure"
notification_title: "EVM basic tests failed on Testnet"
message_format: "{emoji} *{workflow}* {status_message} Run: {run_url}"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TESTNET }}
4 changes: 4 additions & 0 deletions evm-e2e/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ install:
test:
npm test

# Runs tx receipt tests. Used for testnet quick check.
test-basic:
npm test -- tx_receipt.test.ts

# Format
fmt:
npm run format
2 changes: 1 addition & 1 deletion evm-e2e/test/tx_receipt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('Transaction Receipt Tests', () => {
let recipient = ethers.Wallet.createRandom().address;

it('simple transfer receipt', async () => {
const value = ethers.parseEther('1');
const value = ethers.parseEther('0.0001');
const tx = await account.sendTransaction({
to: recipient,
value,
Expand Down

0 comments on commit 724cd43

Please sign in to comment.