Skip to content

Commit

Permalink
fix: integration tests should use a local version of node
Browse files Browse the repository at this point in the history
  • Loading branch information
r-marques committed May 24, 2023
1 parent c6bf77d commit c42bb5a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/testing-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,22 @@ jobs:
with:
token: ${{ secrets.API_TOKEN_GITHUB }}
estuary: 'true'
node: 'false'
contracts-version: 'v3.2.1'
- name: Check artifacts
run: |
nvm-tools copy-artifacts ./artifacts
ls -l artifacts
nvm-tools copy-circuits ./circuits
ls -l circuits
- name: Run tests
env:
SEED_WORDS: ${{ secrets.TEST_MNEMONIC }}
PROVIDER_KEYFILE: accounts/provider.json
RSA_PRIVKEY_FILE: accounts/rsa_priv_key.pem
RSA_PUBKEY_FILE: accounts/rsa_pub_key.pem
PROVIDER_BABYJUB_SECRET: ${{ secrets.PROVIDER_BABYJUB_SECRET }}
BUYER_BABYJUB_SECRET: ${{ secrets.BUYER_BABYJUB_SECRET }}
PROVIDER_BABYJUB_PUBLIC1: ${{ secrets.PROVIDER_BABYJUB_PUBLIC1 }}
PROVIDER_BABYJUB_PUBLIC2: ${{ secrets.PROVIDER_BABYJUB_PUBLIC2 }}
BUYER_BABYJUB_PUBLIC1: ${{ secrets.BUYER_BABYJUB_PUBLIC1 }}
BUYER_BABYJUB_PUBLIC2: ${{ secrets.BUYER_BABYJUB_PUBLIC2 }}
PROVIDER_PASSWORD: secret
- name: Run node
run: |
yarn run setup:dev
yarn start &
# wait for node to start
wget --retry-connrefused --tries=20 http://localhost:8030
- name: Run tests
run: |
# HDWalletProvider keeps jest from exiting
yarn run integration:cov -- --forceExit
2 changes: 1 addition & 1 deletion integration/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { makeAccounts, NeverminedOptions } from '@nevermined-io/sdk'
const configBase: NeverminedOptions = {
web3ProviderUri: 'http://contracts.nevermined.localnet',
marketplaceUri: 'http://marketplace.nevermined.localnet',
neverminedNodeUri: 'http://node.nevermined.localnet',
neverminedNodeUri: 'http://localhost:8030',
neverminedNodeAddress: '0x068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0',
marketplaceAuthToken: undefined,
artifactsFolder: './artifacts',
Expand Down

0 comments on commit c42bb5a

Please sign in to comment.