-
Notifications
You must be signed in to change notification settings - Fork 202
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
chore: scheduled basic e2e tests for evm testnet endpoint #2106
Changes from 3 commits
724cd43
3f2d9d1
fe96c12
c9927c5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 }} | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Enhance test execution reliability and maintainability. Several improvements could make the test execution more robust:
- name: "Run tests (just test-basic)"
+ timeout-minutes: 10
+ uses: nick-fields/retry@v2
+ with:
+ timeout_minutes: 10
+ max_attempts: 3
+ command: cd evm-e2e && just test-basic
- run: just test-basic
- working-directory: "evm-e2e"
env:
- JSON_RPC_ENDPOINT: https://evm-rpc.testnet-1.nibiru.fi
+ JSON_RPC_ENDPOINT: ${{ secrets.TESTNET_RPC_ENDPOINT }}
MNEMONIC: ${{ secrets.WALLET_MNEMONIC_TESTNET }} 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||||||||
- 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 }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Implement dependency caching to improve workflow execution time.
Adding caching for dependencies can significantly reduce the workflow execution time and load on GitHub's infrastructure.