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

Updating pipeline test->main #360

Merged
merged 8 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ jobs:
env:
CI: true
GITHUB_ACTIONS: true
OLD_MNEMONIC: "fun rough treat scan glimpse region century purpose expire video remind second"
MNEMONIC: "vintage reflect pass input polar enlist giggle judge render position also document"
PIN: "696969"
PRIVATE_KEY_EVM: "0x7a9633b8103fec11c9e855a6b6c8c072e9af311a69b92ab0ad8186b1fb57371f"
PRIVATE_KEY_BTC: "KzQfcdjDRUwpVmKKev6k2aAeJFJ359Ht9Umxdg77MTzf2E3bzGsC"
EVM_ADDRESS_1: "0x6bbc122fa843f3ed30d23f8cdd9a430d1f898d07"
EVM_ADDRESS_2: "0xbae949ddb4d8ac763c12f206db842b9b2d49a464"
BITCOIN_ADDRESS_1: "bc1qugw5q5yrzw86wnw3lgldm8en0c736k4hvceuzl"
BITCOIN_ADDRESS_2: "bc1qta5f6q32cphxt5rck3kuspukac7keqvxyuk4cl"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
Expand Down
59 changes: 35 additions & 24 deletions .github/workflows/other-branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name: Feature/Bugfix branch

on:
# workflow_call:
# workflow_call:
push:
branches:
- feature-*
Expand All @@ -13,36 +13,47 @@ on:
- test
pull_request:
branches:
- feature-*
- bugfix-*
- dev
- test
- feature-*
- bugfix-*
- dev
- test
paths:
- package.json
- CHANGELOG
- CHANGELOG

jobs:
build:
runs-on: ubuntu-latest
env:
CI: true
GITHUB_ACTIONS: true
OLD_MNEMONIC: "fun rough treat scan glimpse region century purpose expire video remind second"
MNEMONIC: "vintage reflect pass input polar enlist giggle judge render position also document"
PIN: "696969"
PRIVATE_KEY_EVM: "0x7a9633b8103fec11c9e855a6b6c8c072e9af311a69b92ab0ad8186b1fb57371f"
PRIVATE_KEY_BTC: "KzQfcdjDRUwpVmKKev6k2aAeJFJ359Ht9Umxdg77MTzf2E3bzGsC"
EVM_ADDRESS_1: "0x6bbc122fa843f3ed30d23f8cdd9a430d1f898d07"
EVM_ADDRESS_2: "0xbae949ddb4d8ac763c12f206db842b9b2d49a464"
BITCOIN_ADDRESS_1: "bc1qugw5q5yrzw86wnw3lgldm8en0c736k4hvceuzl"
BITCOIN_ADDRESS_2: "bc1qta5f6q32cphxt5rck3kuspukac7keqvxyuk4cl"
steps:
- name: Code checkout
uses: actions/checkout@v2
- name: Code checkout
uses: actions/checkout@v2

- name: Setting up Node.js
uses: actions/setup-node@v2
with:
node-version: 18.x

- name: Setting up Node.js
uses: actions/setup-node@v2
with:
node-version: 18.x
- name: Installing dependencies
run: npm ci

- name: Installing dependencies
run: npm ci

- name: Run tests
run: |
npm run test
npx jest --coverage | tee ./coverage.txt && exit ${PIPESTATUS[0]}
- name: Run tests
run: |
npm run test
npx jest --coverage | tee ./coverage.txt && exit ${PIPESTATUS[0]}

- name: Jest Coverage Comment
uses: MishaKav/jest-coverage-comment@main
with:
coverage-path: ./coverage.txt

- name: Jest Coverage Comment
uses: MishaKav/jest-coverage-comment@main
with:
coverage-path: ./coverage.txt
28 changes: 14 additions & 14 deletions src/lib/test/keyring.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,45 +4,45 @@ const { before } = require("lodash");
let KeyRing = require("../keyring");
let Vault = require("../vault");
const Web3 = require("web3");
const NETWORKS = {
let NETWORKS = {
ethereum: {
URL: "https://eth-goerli.public.blastapi.io",
CHAIN_ID: 5,
URL: "https://sepolia.infura.io/v3/0611b8c478b14db0b7d29e51466ff925",
CHAIN_ID: 11155111,
},
bsc: {
URL: "https://data-seed-prebsc-1-s1.binance.org:8545/",
URL: "https://bsc-testnet.infura.io/v3/0611b8c478b14db0b7d29e51466ff925",
CHAIN_ID: 97,
},
polygon: {
URL: "https://polygon-amoy-bor-rpc.publicnode.com",
CHAIN_ID: 80001,
URL: "https://polygon-amoy.infura.io/v3/0611b8c478b14db0b7d29e51466ff925",
CHAIN_ID: 80002,
},
optimism: {
URL: "https://optimism-goerli.public.blastapi.io",
CHAIN_ID: 420,
URL: "https://optimism-sepolia.infura.io/v3/0611b8c478b14db0b7d29e51466ff925",
CHAIN_ID: 11155420,
},
arbitrum: {
URL: "https://sepolia-rollup.arbitrum.io/rpc",
URL: "https://arbitrum-sepolia.infura.io/v3/0611b8c478b14db0b7d29e51466ff925",
CHAIN_ID: 421614,
},
mantle: {
URL: "https://rpc.mantle.xyz",
CHAIN_ID: 5001,
URL: "https://mantle-sepolia.infura.io/v3/0611b8c478b14db0b7d29e51466ff925",
CHAIN_ID: 5003,
},
velas: {
URL: "https://explorer.testnet.velas.com/rpc",
CHAIN_ID: 111,
},
avalanche: {
URL: "https://api.avax-test.network/ext/bc/C/rpc",
URL: "https://avalanche-fuji.infura.io/v3/0611b8c478b14db0b7d29e51466ff925",
CHAIN_ID: 43113,
},
base: {
URL: "https://base-sepolia.blockpi.network/v1/rpc/public",
URL: "https://base-sepolia.infura.io/v3/0611b8c478b14db0b7d29e51466ff925",
CHAIN_ID: 84532,
},
zkEVM: {
URL: "https://polygon-zkevm.drpc.org",
URL: "https://1rpc.io/polygon/zkevm",
CHAIN_ID: 1442,
},
bevm: {
Expand Down
Loading