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

Run e2e testnet tests via GHA, not Kubernetes #98

Merged
merged 22 commits into from
Aug 24, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
176ef31
Run e2e testnet tests on Ropsten via GHA, not Kubernetes
michalinacienciala Jul 5, 2021
5655dac
Change value of the CHAIN_API_URL
michalinacienciala Jul 28, 2021
dafcd52
Install latest version of `tbtc.js` package with `ropsten` tag
michalinacienciala Jul 30, 2021
0d82f27
Pass BTC depositor priv key
lukasz-zimnoch Aug 3, 2021
15b3305
Save testnet BTC
lukasz-zimnoch Aug 4, 2021
38bcc53
Use higher lot size
lukasz-zimnoch Aug 4, 2021
bac8d28
Change names of the secrets used in the workflow
michalinacienciala Aug 5, 2021
0cc2ea5
Modify cron - execute daily
michalinacienciala Aug 5, 2021
0b4359e
Add a comment about using `setup-node`'s cache functionality
michalinacienciala Aug 5, 2021
48f75f5
Handle deposit `autoSubmit` errors
lukasz-zimnoch Aug 5, 2021
27f8ab2
Simplify handling of `autoSubmit` errors
lukasz-zimnoch Aug 5, 2021
4e37329
Merge remote-tracking branch 'origin/rfc-18/move-e2e-kubernetes-job-t…
michalinacienciala Aug 9, 2021
283b348
Merge pull request #104 from keep-network/rename-keep-test-eth-hostna…
nkuba Aug 9, 2021
5e00f7a
Exit the script when `onError` callback is hit
lukasz-zimnoch Aug 11, 2021
724cca1
Cache npm dependencies via setup-node action
michalinacienciala Aug 17, 2021
42906be
Add block number information to e2e test
lukasz-zimnoch Aug 18, 2021
77d4a05
Fix block fetching logic in e2e test
lukasz-zimnoch Aug 18, 2021
101f02c
Display source account balance
lukasz-zimnoch Aug 18, 2021
673315e
Improve log formatting
lukasz-zimnoch Aug 18, 2021
68a9902
Increase fee overhead
lukasz-zimnoch Aug 23, 2021
152e9f0
Run four times a day
lukasz-zimnoch Aug 24, 2021
7e7319d
Remove script options values log
lukasz-zimnoch Aug 24, 2021
File filter

Filter by extension

Filter by extension


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

on:
schedule:
- cron: '*/20 * * * *'
workflow_dispatch:
pull_request: # TODO: remove this trigger before merging to main
nkuba marked this conversation as resolved.
Show resolved Hide resolved

jobs:
e2e-testnet-tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./e2e
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: "14.x"

# TODO: Temprorarily we use fixed version of tbtc.js. Ultimately, we would
# need to point to the latest deployed version.
- run: npm install --save-exact @keep-network/tbtc.js@0.19.4-ropsten.4
lukasz-zimnoch marked this conversation as resolved.
Show resolved Hide resolved

- name: Cache Global NPM Cache
nkuba marked this conversation as resolved.
Show resolved Hide resolved
uses: actions/cache@v2
env:
cache-name: cache-global-npm-cache
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-

- name: Run e2e tests
run: |
./e2e-test.js \
--bitcoin-electrum-host=${{ secrets.KEEP_TEST_ELECTRUMX_HOSTNAME }} \
--bitcoin-electrum-port=${{ secrets.KEEP_TEST_ELECTRUMX_PORT }} \
--bitcoin-network="testnet" \
--ethereum-node=${{ secrets.KEEP_TEST_ETH_HOSTNAME }} \
--lot-size-satoshis="1000000"
11 changes: 0 additions & 11 deletions deployments/e2e-test/e2e-test-configmap.yml

This file was deleted.

69 changes: 0 additions & 69 deletions deployments/e2e-test/e2e-test-cronjob.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions deployments/e2e-test/e2e-test-secret.yml.SAMPLE

This file was deleted.

2 changes: 1 addition & 1 deletion e2e/e2e-test.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env node --experimental-modules
#!/usr/bin/env -S node --experimental-json-modules

import Web3 from "web3"
import ProviderEngine from "web3-provider-engine"
Expand Down