-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run e2e testnet tests via GHA, not Kubernetes
- Loading branch information
1 parent
563f453
commit 1f625f7
Showing
3 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: E2E tests / Testnet | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' #TODO: specify different frequency | ||
workflow_dispatch: | ||
pull_request: # TODO: remove this trigger before merging to main | ||
|
||
jobs: | ||
e2e-testnet-tests: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./e2e | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: DEBUG # TODO: remove | ||
run: | | ||
echo ${{ secrets.KEEP_TEST_ELECTRUMX_HOSTNAME }} | ||
echo ${{ secrets.KEEP_TEST_ELECTRUMX_PORT }} | ||
echo ${{ secrets.KEEP_TEST_ETH_HOSTNAME }} | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "14.x" | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Cache Global NPM Cache | ||
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters