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

SDK v2 PR - DRAFT #551

Merged
merged 210 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
210 commits
Select commit Hold shift + click to select a range
c9ba69d
chore(deps): bump whatwg-url from 7.1.0 to 13.0.0
dependabot[bot] Jun 22, 2023
88097f7
feat: adding helper methods to check if a service exists
aaitor Jul 6, 2023
aca6004
chore: migrating DDOHelper functions to DDO
aaitor Jul 7, 2023
b43c7e3
Merge tag 'v1.6.0-rc0' into fix/ddo_helpers
aaitor Jul 7, 2023
6143d1d
Merge pull request #549 from nevermined-io/main
aaitor Jul 7, 2023
e97a378
feat: adding function to get values from conditions
aaitor Jul 7, 2023
004b7dd
Merge branch 'develop' into fix/ddo_helpers
aaitor Jul 7, 2023
ad2d1b4
feat: allow the registration of multiple services of the same type
aaitor Jul 7, 2023
4ed4b51
feat: replace BigNumber class with ES2020 BigInt
r-marques Jul 11, 2023
b21d756
feat: update contract related methos to ethers v6
r-marques Jul 12, 2023
240cca6
feat: support for multiple services of the same type
aaitor Jul 12, 2023
3dbc143
feat: code compiles are migration to ethers v6
r-marques Jul 12, 2023
fe6eae1
feat: update tests to use ethers v6
r-marques Jul 12, 2023
26997e9
fix: fixed account generation from mnemonic code
r-marques Jul 13, 2023
afe27c3
ci: multiple services tests
aaitor Jul 13, 2023
d7046a1
Merge branch 'fix/ddo_helpers' into feat/multi_service
aaitor Jul 13, 2023
ac92f19
fix: finding the correct contract method
r-marques Jul 13, 2023
b8f6bd4
fix: issue with getting condition by address
r-marques Jul 13, 2023
ac14d46
feat: remove getAddress method from ContractBase
r-marques Jul 18, 2023
5a6c7a7
feat: use SEED_WORDS in unit tests
r-marques Jul 18, 2023
07418cd
fix: getting event data with ethers
r-marques Jul 18, 2023
00a564f
fix: issue with ethers using duplicated nonces
r-marques Jul 19, 2023
e083778
feat: draft nfts support
aaitor Jul 19, 2023
4810001
fix: multiple fixes
r-marques Jul 19, 2023
b87c6d2
fix: more integration tests
r-marques Jul 19, 2023
d00034e
fix: subscribablePromise test
r-marques Jul 19, 2023
45057b9
Merge branch 'main' into feat/multi_service
aaitor Jul 20, 2023
7f9533b
fix: unit tests
r-marques Jul 20, 2023
297c66d
fix: unit tests CI workflow
r-marques Jul 20, 2023
8935c1d
fix: unit tests CI workflow
r-marques Jul 20, 2023
c087e6f
fix: remove unused param in createAgreementWithPayment
r-marques Jul 20, 2023
afcd4c9
Merge branch 'main' into develop
r-marques Jul 20, 2023
883e43b
Merge branch 'develop' into feat/ethers-v6
r-marques Jul 20, 2023
a39e613
chore: bump version to 2.0.0-rc0
r-marques Jul 20, 2023
06cdbc1
feat: nfts multiservice support refactor
aaitor Jul 20, 2023
6167be4
Merge branch 'feat/multi_service' of github.com:nevermined-io/sdk-js …
aaitor Jul 20, 2023
73691ad
Automated CHANGELOG.md update
r-marques Jul 20, 2023
9a9239f
feat: use develop branch of node in CI
r-marques Jul 20, 2023
ad152c6
Merge branch 'feat/ethers-v6' of github.com:nevermined-io/sdk-js into…
r-marques Jul 20, 2023
2dd0b42
fix: node CI path
r-marques Jul 20, 2023
adbcd83
test: fixing tests
aaitor Jul 24, 2023
066aa9d
Update testing-node.yml
aaitor Jul 24, 2023
801c86d
ci: fixing test
aaitor Jul 24, 2023
ebfc11e
Merge pull request #556 from nevermined-io/feat/ethers-v6
aaitor Jul 24, 2023
a0fdcda
Merge branch 'develop' into feat/multi_service
aaitor Jul 24, 2023
b8c4d8f
chore: using bigint on tests
aaitor Jul 24, 2023
ef51a67
ci: increase timeout
aaitor Jul 24, 2023
cee8244
fix: adding support to multiple services on erc1155 nfts
aaitor Jul 25, 2023
0376a87
chore: updating migration guide
aaitor Jul 25, 2023
c4b2b5f
chore: addressing comments
aaitor Jul 25, 2023
d735c78
chore: adding v2.0.0-rc1 Changelog updates
aaitor Jul 25, 2023
a3ed888
ci: testing with latest node
aaitor Jul 25, 2023
3d45ff9
test: fixing problem with nft amounts
aaitor Jul 25, 2023
f692859
ci: using node from develop
aaitor Jul 25, 2023
b433788
test: adjusting attributes
aaitor Jul 25, 2023
941f96f
chore: coming back to original attribute name
aaitor Jul 25, 2023
fe0fecc
Merge pull request #555 from nevermined-io/feat/multi_service
aaitor Jul 26, 2023
8a04a81
feat: reduce number of calls to chainId
r-marques Jul 26, 2023
89511f1
feat: make keeper network info static
r-marques Jul 26, 2023
6004a8b
chore: cleanup code
r-marques Jul 26, 2023
1ef0547
fix: bring back network info getters
r-marques Jul 26, 2023
81c34f4
Automated CHANGELOG.md update
r-marques Jul 26, 2023
d5fddac
Merge pull request #560 from nevermined-io/feat/remove-web3-calls
r-marques Jul 26, 2023
61f990b
test: using mocha rc because opts is deprecated
aaitor Jul 27, 2023
5070f31
test: e2e tests for credit subscriptions
aaitor Jul 27, 2023
b1ed747
Merge branch 'develop' into feat/erc1155_credit_subs
aaitor Jul 27, 2023
f97aa61
feat: subscription by credits api
aaitor Jul 27, 2023
ea35a0e
Merge branch 'feat/erc1155_credit_subs' of github.com:nevermined-io/s…
aaitor Jul 27, 2023
2adf213
test: using mocha rc because opts is deprecated
aaitor Jul 27, 2023
4c840bd
feat: mocha and chai to latest version
r-marques Jul 27, 2023
d0f6c11
chore: check CI number of cpus
r-marques Jul 27, 2023
91c7c8f
Revert "chore: check CI number of cpus"
r-marques Jul 27, 2023
1babae3
feat: use latest contracts and develop node
r-marques Jul 27, 2023
a133315
chore: adapting nft 1155 to duration and transfer params
aaitor Jul 27, 2023
a06d31f
chore: bumping to v2.0.0-rc3
aaitor Jul 27, 2023
4d125f2
chore: adding v2.0.0-rc3 Changelog updates
aaitor Jul 27, 2023
c61cb5a
chore: fixing nft tests
aaitor Jul 31, 2023
bd17944
chore: tests
aaitor Jul 31, 2023
7a1c711
chore: adding v2.0.0-rc4 Changelog updates
aaitor Jul 31, 2023
2c0c863
chore: testing with rc5
aaitor Aug 2, 2023
36561aa
chore: adding v2.0.0-rc5 Changelog updates
aaitor Aug 2, 2023
ee829ac
feat: remove the need to wait for the marketplace api in the tests
r-marques Aug 8, 2023
648eb19
feat: improve tests speed
r-marques Aug 9, 2023
5263d36
feat: burning editions for NFT-1155 Credit subscriptions
aaitor Aug 9, 2023
139208f
chore: bumping to rc6
aaitor Aug 9, 2023
4226766
feat: remove code coverage related tooling. not being used
r-marques Aug 9, 2023
647274a
fix: issue in package.json script
r-marques Aug 9, 2023
6a564aa
Merge pull request #564 from nevermined-io/feat/update-mocha
r-marques Aug 9, 2023
bffa101
chore: adding v2.0.0-rc6 Changelog updates
aaitor Aug 9, 2023
87d7beb
fix: resolving integration problems
aaitor Aug 10, 2023
ee6bde2
chore: adding v2.0.0-rc7 Changelog updates
aaitor Aug 10, 2023
340b11e
Merge branch 'develop' into feat/erc1155_credit_subs
aaitor Aug 10, 2023
3a367ba
Merge pull request #563 from nevermined-io/feat/erc1155_credit_subs
aaitor Aug 11, 2023
298ac52
ci: updating to latest versions
aaitor Aug 11, 2023
f800cce
fix: credits flow with duration
aaitor Aug 21, 2023
980a4bf
fix: fixing fulfillment of transferNft cond
aaitor Aug 21, 2023
3d5502f
chore: adding v2.0.0-rc8 Changelog updates
aaitor Aug 21, 2023
267f081
ci: using develop node
aaitor Aug 21, 2023
9329a4b
ci: latest contracts
aaitor Aug 21, 2023
fb3f5a2
Merge pull request #566 from nevermined-io/feat/adapt_contracts-323
aaitor Aug 22, 2023
da999c7
test: validating downloads by owner without access service
aaitor Aug 22, 2023
2031db9
Merge pull request #570 from nevermined-io/fix/download_api
aaitor Aug 23, 2023
e5adcdc
Merge branch 'develop' into dependabot/npm_and_yarn/whatwg-url-13.0.0
aaitor Aug 23, 2023
472d29f
Merge pull request #527 from nevermined-io/dependabot/npm_and_yarn/wh…
aaitor Aug 23, 2023
4f1d70c
feat: wip - lazy asset registration
aaitor Aug 28, 2023
4208330
wip: lazy assets wip
aaitor Aug 29, 2023
bfb1fd7
feat: allow off-chain asset create and resolve
aaitor Aug 30, 2023
a6c7185
Merge branch 'develop' into feat/resolve_offchain
aaitor Aug 30, 2023
b5040a4
feat: assets.update registers an event on-chain
aaitor Aug 30, 2023
4489cc9
Merge branch 'feat/resolve_offchain' of github.com:nevermined-io/sdk-…
aaitor Aug 30, 2023
708b60c
Merge pull request #573 from nevermined-io/feat/resolve_offchain
aaitor Aug 30, 2023
ba8a80c
fix: allowing to update files and services private metadata
aaitor Aug 30, 2023
b6966ee
test: fix problem with temp folder
aaitor Aug 30, 2023
f6a8b70
Merge pull request #574 from nevermined-io/fix/files_update
aaitor Aug 30, 2023
4541e6e
chore: adding v2.0.0-rc9 Changelog updates
aaitor Aug 30, 2023
29924a8
Merge branch 'fix/load_artifacts' into develop
aaitor Aug 31, 2023
c132bce
chore: fixing eslint parsing issues
aaitor Aug 31, 2023
e53dbbe
Merge branch 'main' into develop
aaitor Aug 31, 2023
5ba27e7
ci: updating nightly tests
aaitor Sep 1, 2023
cafa514
ci: updating nightly tests
aaitor Sep 1, 2023
118fac7
Merge branch 'develop' of github.com:nevermined-io/sdk-js into develop
aaitor Sep 1, 2023
c061753
feat: initial support for zerodev
r-marques Sep 20, 2023
9e62fcd
feat: move support from node 16 to node 18
r-marques Sep 21, 2023
104ce3e
chore: update node version in .nvmrc
r-marques Sep 21, 2023
4c3d8c3
Merge branch 'main' into develop
aaitor Sep 22, 2023
0c53780
chore: fixing merge problem
aaitor Sep 22, 2023
5e2b71b
Merge branch 'develop' into feat/node-18
r-marques Sep 27, 2023
4cf5a1c
chore: reclaim some space in the CI unit-tests job
r-marques Sep 27, 2023
64cb9df
chore: prettier
r-marques Sep 27, 2023
8a71dbd
fix: connection to ganache
r-marques Sep 27, 2023
925292e
Merge pull request #580 from nevermined-io/feat/node-18
r-marques Sep 28, 2023
6ec693b
chore: testing
mrsmkl Sep 28, 2023
baead7c
fix: updating
mrsmkl Sep 28, 2023
d74d223
fix: other initializations
mrsmkl Sep 28, 2023
207ec6f
fix: modify abis
mrsmkl Sep 28, 2023
d5d0567
fix: modify abis
mrsmkl Sep 28, 2023
eed7d65
fix: at least one error left
mrsmkl Sep 28, 2023
65f0b90
fix: new artifacts for tokens
mrsmkl Sep 28, 2023
3009c47
fix: rest of the cases?
mrsmkl Sep 28, 2023
886f0ae
test: e2e testing of NVM App flows
aaitor Sep 29, 2023
e268b25
Merge branch 'develop' into feat/app_testing
aaitor Sep 29, 2023
2d82d79
fix: making it work with contracts v3.5.2
aaitor Sep 29, 2023
24330db
Merge pull request #584 from nevermined-io/feat/contracts-3.5.0
aaitor Sep 29, 2023
40de9c3
Merge branch 'develop' into feat/app_testing
aaitor Sep 29, 2023
0278336
test: fixing tests
aaitor Sep 29, 2023
98b1dc4
fix: adapting to time subscriptions
aaitor Oct 2, 2023
fd20f69
ci: using more reliable source of data
aaitor Oct 2, 2023
8f4879a
test: fixing assets test
aaitor Oct 2, 2023
467d492
chore: adding v2.0.0-rc10 Changelog updates
aaitor Oct 3, 2023
9067120
Merge pull request #585 from nevermined-io/feat/app_testing
aaitor Oct 3, 2023
e85a141
fix: signTypedData
eruizgar91 Oct 3, 2023
f7d7f50
fix: form-data lib was missing
aaitor Oct 3, 2023
de18a08
Merge pull request #587 from nevermined-io/fix/signTypedData
aaitor Oct 3, 2023
599e3cf
Merge pull request #588 from nevermined-io/fix/missing_form_data
aaitor Oct 3, 2023
222bec9
chore: adding v2.0.0-rc11 Changelog updates
aaitor Oct 3, 2023
f93664d
test: fix services e2e services flow
aaitor Oct 3, 2023
e97c3ac
fix: adaptations and tests for NVM App 1155 flows
aaitor Oct 3, 2023
1108aba
chore: adding v2.0.0-rc12 Changelog updates
aaitor Oct 3, 2023
c4d50f8
feat: support search base on nftType
eruizgar91 Oct 4, 2023
f94625a
Merge pull request #589 from nevermined-io/fix/app_nft1155
aaitor Oct 4, 2023
2fbdcba
fix: conflicts
eruizgar91 Oct 4, 2023
b31609f
feat: update version
eruizgar91 Oct 4, 2023
68be908
fix: query logic
eruizgar91 Oct 4, 2023
4cedc9b
feat: update to rc14
eruizgar91 Oct 4, 2023
fb540a1
Automated CHANGELOG.md update
eruizgar91 Oct 4, 2023
7ae842e
fix: nft1155 test
eruizgar91 Oct 5, 2023
af30abe
feat: utility improvements and typo
aaitor Oct 5, 2023
bb3f39e
Merge branch 'develop' into fix/cli_utility
aaitor Oct 5, 2023
c3118cf
fix: adapting to different erc types
aaitor Oct 5, 2023
9c46471
Merge branch 'fix/cli_utility' of github.com:nevermined-io/sdk-js int…
aaitor Oct 5, 2023
0e96954
Merge pull request #590 from nevermined-io/fix/searchApi-to-support-1155
aaitor Oct 6, 2023
06fac6e
Merge branch 'develop' into fix/cli_utility
aaitor Oct 6, 2023
aea4dd2
chore: updating version
aaitor Oct 6, 2023
176132c
chore: adding v2.0.0-rc15 Changelog updates
aaitor Oct 6, 2023
a3d608a
Merge pull request #592 from nevermined-io/fix/cli_utility
aaitor Oct 6, 2023
53d2658
fix: skip the encryption through the Node when there is no files
aaitor Oct 9, 2023
06dce75
Merge pull request #594 from nevermined-io/fix/skip_encryption
aaitor Oct 9, 2023
176899a
chore: adding v2.0.0-rc16 Changelog updates
aaitor Oct 9, 2023
b8a24a9
Merge branch 'develop' into feat/zerodev
r-marques Oct 10, 2023
6e77cb1
fix: the `tokenId` attribute in the DDO is now clean (no DID prefix)
aaitor Oct 11, 2023
b592eea
Merge pull request #595 from nevermined-io/fix/clean_tokenId
aaitor Oct 11, 2023
ce8106b
chore: adding v2.0.0-rc17 Changelog updates
aaitor Oct 11, 2023
849b02c
feat: update to latest version of nvm-tools-actions
r-marques Oct 12, 2023
17d9e60
fix: adding additional external resource attributes
aaitor Oct 16, 2023
0c66298
chore: bumping version
aaitor Oct 16, 2023
9f7af34
Merge branch 'develop' into fix/ext_resources_atts
aaitor Oct 16, 2023
cd8cb48
chore: adding v2.0.0-rc18 Changelog updates
aaitor Oct 16, 2023
ab28451
Merge branch 'fix/ext_resources_atts' of github.com:nevermined-io/sdk…
aaitor Oct 16, 2023
c2a7007
ci: nvm tools v0.15.0
aaitor Oct 16, 2023
f0d73b2
Merge pull request #597 from nevermined-io/fix/ext_resources_atts
aaitor Oct 16, 2023
8b61061
Merge pull request #596 from nevermined-io/feat/nvm-tools-actions-v0.…
r-marques Oct 17, 2023
6d38688
Merge branch 'develop' into feat/zerodev
aaitor Oct 17, 2023
be0d681
feat: e2e asset creation working
r-marques Oct 18, 2023
cda807a
feat: code cleanup and tests
r-marques Oct 18, 2023
61c758d
fix: update an pin zerodev sdk and alchemy aa-core to latest versions
r-marques Oct 19, 2023
85d6d59
fix: search by subscription needs to filter by tokenId
eruizgar91 Oct 19, 2023
dc6e906
feat: bump version
eruizgar91 Oct 19, 2023
418877e
fix: add filter by nft type
eruizgar91 Oct 19, 2023
538cb14
fix: add type2
eruizgar91 Oct 19, 2023
93adf6e
Merge pull request #598 from nevermined-io/fix/queries-by-subscription
eruizgar91 Oct 19, 2023
afbfae6
Automated CHANGELOG.md update
eruizgar91 Oct 19, 2023
dc2e7ae
Merge branch 'develop' into feat/zerodev
r-marques Oct 19, 2023
bb26f8a
Merge pull request #578 from nevermined-io/feat/zerodev
r-marques Oct 19, 2023
3a13b53
fix: filter by token id without did:nv:
eruizgar91 Oct 19, 2023
2677d6f
Merge pull request #599 from nevermined-io/fix/filter-by-token-id
eruizgar91 Oct 19, 2023
7fb5baa
Automated CHANGELOG.md update
eruizgar91 Oct 19, 2023
54dd80f
fix: docs build
r-marques Oct 19, 2023
456227a
Merge branch 'develop' into fix/documentation-build
r-marques Oct 19, 2023
cdc4fa7
Merge pull request #600 from nevermined-io/fix/documentation-build
r-marques Oct 19, 2023
d77f416
chore: bumping to v2.0.0
aaitor Oct 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/release-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
# Build process
- uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: 18

- name: Set version to env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
node-version: 18
registry-url: https://registry.npmjs.org/
- run: yarn install --frozen-lockfile --ignore-engines
- run: npm publish --access public
Expand Down
35 changes: 19 additions & 16 deletions .github/workflows/testing-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Install dependencies
run: |
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
env:
ETH_PORT: 18545
run: |
yarn run test:cover
yarn test:all

subgraph-integration:
runs-on: ubuntu-latest
Expand All @@ -55,15 +55,16 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: nevermined-io/nvm-tools-actions@v0.12.0
node-version: 18
- uses: nevermined-io/nvm-tools-actions@v0.15.0
with:
token: ${{ secrets.API_TOKEN_GITHUB }}
opengsn: 'true'
estuary: 'true'
compute: 'true'
contracts-version: 'v3.2.1'
node-version: 'v1.2.16'
# TODO: Update to tagged versions when everything is relased and in main branches
contracts-version: 'latest'
node-version: 'develop'

- name: Install dependencies
run: |
Expand Down Expand Up @@ -96,15 +97,16 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: nevermined-io/nvm-tools-actions@v0.11.0
node-version: 18
- uses: nevermined-io/nvm-tools-actions@v0.15.0
with:
token: ${{ secrets.API_TOKEN_GITHUB }}
opengsn: 'true'
estuary: 'true'
compute: 'true'
contracts-version: 'v3.2.1'
node-version: 'v1.2.9'
# TODO: Update to tagged versions when everything is relased and in main branches
contracts-version: 'latest'
node-version: 'develop'

- name: Install dependencies
run: |
Expand All @@ -129,15 +131,16 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: nevermined-io/nvm-tools-actions@v0.11.0
node-version: 18
- uses: nevermined-io/nvm-tools-actions@v0.15.0
with:
token: ${{ secrets.API_TOKEN_GITHUB }}
opengsn: 'true'
estuary: 'true'
compute: 'true'
contracts-version: 'v3.2.1'
node-version: 'v1.2.9'
# TODO: Update to tagged versions when everything is relased and in main branches
contracts-version: 'latest'
node-version: 'develop'

- name: Install dependencies
run: |
Expand All @@ -156,15 +159,15 @@ jobs:
IPFS_PROJECT_ID: ${{ secrets.IPFS_PROJECT_ID }}
IPFS_PROJECT_SECRET: ${{ secrets.IPFS_PROJECT_SECRET }}
LOG_LEVEL: 1 # If LOG_LEVEL is >1 it will print the logger.debug calls
run: yarn run integration:cover
run: yarn integration:all

mumbai-integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Install dependencies
run: |
Expand Down
33 changes: 8 additions & 25 deletions .github/workflows/testing-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,48 +12,31 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- uses: actions/checkout@v3
with:
repository: nevermined-io/node
path: node
# TODO: remove this when Node integrated with SDKv2 is integraged
ref: develop
token: ${{ secrets.API_TOKEN_GITHUB }}
- uses: actions/checkout@v3
with:
repository: nevermined-io/sdk-dtp
path: sdk-dtp
token: ${{ secrets.API_TOKEN_GITHUB }}
- uses: nevermined-io/[email protected]
- uses: nevermined-io/[email protected]
with:
token: ${{ secrets.API_TOKEN_GITHUB }}
opengsn: 'true'
estuary: 'true'
contracts-version: 'v3.2.1'
contracts-version: 'latest'
node: 'false'

- name: Install sponge
run: sudo apt-get install -y moreutils

- name: Install dependencies
run: yarn

- name: Build SDK-JS package and node
run: |
yarn build
yarn pack
cp *.tgz sdk-dtp/sdk.tgz
cp *.tgz node/sdk.tgz
cd sdk-dtp
cat package.json | jq '.dependencies."@nevermined-io/sdk"="./sdk.tgz"' | sponge package.json
yarn
yarn build
yarn pack
cp *dtp*.tgz ../node/dtp.tgz

cd ../node
cat package.json | jq '.dependencies."@nevermined-io/sdk"="./sdk.tgz"' | sponge package.json
cat package.json | jq '.dependencies."@nevermined-io/sdk-dtp"="./dtp.tgz"' | sponge package.json
yarn
cd node/
yarn add ../
yarn run setup:dev
yarn build

Expand All @@ -78,7 +61,7 @@ jobs:
NEVERMINED_NODE_URI: http://localhost:8030
run: |
nvm-tools copy-artifacts ./artifacts
yarn run integration:cover
yarn integration:all

- name: Upload node logs
uses: actions/upload-artifact@v2
Expand Down
23 changes: 14 additions & 9 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: nevermined-io/nvm-tools-actions@v0.12.0
node-version: 18
- uses: nevermined-io/nvm-tools-actions@v0.15.0
with:
token: ${{ secrets.API_TOKEN_GITHUB }}
opengsn: 'true'
estuary: 'true'
contracts-version: 'v3.2.1'
# TODO: Update to tagged versions when everything is released and in main branches
node-version: 'develop'
contracts-version: 'latest'

- name: Install dependencies
run: |
Expand All @@ -40,12 +42,14 @@ jobs:
IPFS_PROJECT_ID: ${{ secrets.IPFS_PROJECT_ID }}
IPFS_PROJECT_SECRET: ${{ secrets.IPFS_PROJECT_SECRET }}
LOG_LEVEL: 1 # If LOG_LEVEL is >1 it will print the logger.debug calls
run: yarn run integration:cover
run: yarn integration:all

unit-tests:
runs-on: ubuntu-latest

steps:
- name: Reclaim some disk space
run: docker system prune --all --volumes -f
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
Expand All @@ -55,7 +59,7 @@ jobs:
token: ${{ secrets.API_TOKEN_GITHUB }}
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Deploy contracts
run: |
Expand All @@ -73,14 +77,15 @@ jobs:
- name: Install dependencies
run: |
yarn
- name: Run linters
run: yarn lint

- name: Start ganache
run: yarn ganache --port 18545 --chain.chainId 8998 &
env:
SEED_WORDS: ${{ secrets.seedWords }}
run: yarn ganache --server.port 18545 --chain.chainId 8998 --wallet.mnemonic "$SEED_WORDS" --detach

- name: Run unit tests
env:
ETH_PORT: 18545
SEED_WORDS: ${{ secrets.seedWords }}
run: |
yarn run test:cover
yarn test:all
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ coverage/
doc/
test/**/*.js
!test/resources/proxy-poc/*.js
!test/resources/artifacts/*.json
src/**/*.js
package-lock.json
yarn.lock
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v12
18
Loading