Skip to content

Commit

Permalink
Actions clean3 (#888)
Browse files Browse the repository at this point in the history
* cleanActions

Signed-off-by: Adrian Escacena <[email protected]>

* cleanActions

Signed-off-by: Adrian Escacena <[email protected]>

* cleanActions

Signed-off-by: Adrian Escacena <[email protected]>

* cleanActions

Signed-off-by: Adrian Escacena <[email protected]>

* cleanActions

Signed-off-by: Adrian Escacena <[email protected]>

* cleanActions

Signed-off-by: Adrian Escacena <[email protected]>

* cleanActions

Signed-off-by: Adrian Escacena <[email protected]>

* cleanActions

Signed-off-by: Adrian Escacena <[email protected]>

* cleanActions

Signed-off-by: Adrian Escacena <[email protected]>

* Skipping 2 SDK custom fees tests

Signed-off-by: Miguel Ángel <[email protected]>

* Skipping 1 SDK RPC transaction adapter test

Signed-off-by: Miguel Ángel <[email protected]>

* Skipping 3 tests

Signed-off-by: Miguel Ángel <[email protected]>

* test without web

Signed-off-by: Adrian Escacena <[email protected]>

* close version to main 1.9.1

Signed-off-by: Adrian Escacena <[email protected]>

---------

Signed-off-by: Adrian Escacena <[email protected]>
Signed-off-by: Miguel Ángel <[email protected]>
Co-authored-by: Miguel Ángel <[email protected]>
  • Loading branch information
adrianIOB and mamorales1 authored Sep 14, 2023
1 parent 1800418 commit 2449adf
Show file tree
Hide file tree
Showing 22 changed files with 86 additions and 505 deletions.
79 changes: 0 additions & 79 deletions .github/workflows/all.publish.yml

This file was deleted.

84 changes: 67 additions & 17 deletions .github/workflows/all.testWithRpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,11 @@ jobs:
run: |
npm install
npm run build
npm install
working-directory: contracts
- name: Install dependencies SDK
run: |
npm install
npm run build
npm install
working-directory: sdk
- name: Install dependencies Cli
run: |
Expand All @@ -58,28 +56,25 @@ jobs:

- name: package.lock web
run: cat package-lock.json

working-directory: web
- name: node modelues sdk
run: ls node_modules/
working-directory: sdk

- name: Create file
run: |
touch .env
echo "CLIENT_PRIVATE_KEY_ECDSA='3030020100300706052b8104000a042204203b246060c02fb81582b2299f947e72447d81523575f83a63bf2b7397421eb709'" >> .env
echo "CLIENT_PUBLIC_KEY_ECDSA='302d300706052b8104000a0322000329087cf808aea861034668f7f2d6fe56299d62746414ac2cc2d3b147ba301b81'" >> .env
echo "CLIENT_PRIVATE_KEY_ECDSA='3b246060c02fb81582b2299f947e72447d81523575f83a63bf2b7397421eb709'" >> .env
echo "CLIENT_PUBLIC_KEY_ECDSA='29087cf808aea861034668f7f2d6fe56299d62746414ac2cc2d3b147ba301b81'" >> .env
echo "CLIENT_EVM_ADDRESS_ECDSA='0x3a5c210bd658f7509a5f63df48f710a0240f2cab'" >> .env
echo "CLIENT_ACCOUNT_ID_ECDSA='0.0.442280'" >> .env
echo "CLIENT_PRIVATE_KEY_ED25519='302e020100300506032b657004220420016c98e8556ca5b1298602652da290de928ca29c336215baa88de9c629f26e99'" >> .env
echo "CLIENT_PUBLIC_KEY_ED25519='302a300506032b657003210071e784a0c58c3e0fff92abc5962a5e8e048382723fa136bb71c4d183687456df'" >> .env
echo "CLIENT_PRIVATE_KEY_ED25519='016c98e8556ca5b1298602652da290de928ca29c336215baa88de9c629f26e99'" >> .env
echo "CLIENT_PUBLIC_KEY_ED25519='71e784a0c58c3e0fff92abc5962a5e8e048382723fa136bb71c4d183687456df'" >> .env
echo "CLIENT_EVM_ADDRESS_ED25519='0x000000000000000000000000000000000006bfa9'" >> .env
echo "CLIENT_ACCOUNT_ID_ED25519='0.0.442281'" >> .env
echo "CLIENT_PRIVATE_KEY_ED25519_2='302e020100300506032b657004220420915a4680c82cb23fc2b0f00bda27ff3767ddfeb064c986221dddbba944d9e17c'" >> .env
echo "CLIENT_PUBLIC_KEY_ED25519_2='302a300506032b6570032100369b111faa5d011b34b0c434340f0fa9584fcc0c92b5f5df3883e5bfbc725b3f'" >> .env
echo "CLIENT_PRIVATE_KEY_ED25519_2='915a4680c82cb23fc2b0f00bda27ff3767ddfeb064c986221dddbba944d9e17c'" >> .env
echo "CLIENT_PUBLIC_KEY_ED25519_2='369b111faa5d011b34b0c434340f0fa9584fcc0c92b5f5df3883e5bfbc725b3f'" >> .env
echo "CLIENT_EVM_ADDRESS_ED25519_2='0x000000000000000000000000000000000006bfb5'" >> .env
echo "CLIENT_ACCOUNT_ID_ED25519_2='0.0.442293'" >> .env
echo "HEDERA_TOKEN_MANAGER_ADDRESS=0.0.14455016" >> .env
echo "FACTORY_ADDRESS=0.0.14455068" >> .env
echo "HEDERA_TOKEN_MANAGER_ADDRESS=0.0.1137621" >> .env
echo "FACTORY_ADDRESS=0.0.1137631" >> .env
working-directory: sdk

- name: View File
Expand All @@ -105,8 +100,8 @@ jobs:

- name: Run the Docker image
run: nohup docker run --network="host" rpc &
- name: Sleep for 30 seconds
run: sleep 35s
- name: Sleep for 25 seconds
run: sleep 25s
shell: bash
- name: DockerStatus
run: docker ps
Expand All @@ -128,4 +123,59 @@ jobs:
- name: Test cli
run: npm run test
working-directory: cli

- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/auth@v1
with:
workload_identity_provider: 'projects/101730247931/locations/global/workloadIdentityPools/registry-identity-pool/providers/gh-provider'
service_account: '[email protected]'
token_format: 'access_token'
- name: Setup Google Cloud SDK
uses: google-github-actions/setup-gcloud@v1
- name: Install contracts dependencies
run: npm run install:contracts
- name: Create .npmrc contracts
run: |
cd contracts && cat << EOF > .npmrc
@hashgraph:registry=https://us-npm.pkg.dev/hedera-registry/stablecoin-npm/
//us-npm.pkg.dev/hedera-registry/stablecoin-npm/:_authToken="${{ steps.auth.outputs.access_token }}"
//us-npm.pkg.dev/hedera-registry/stablecoin-npm/:always-auth=true
EOF
- name: Publish contracts package
run: npm run publish:contracts
- name: Install hashconnect dependencies
run: npm run install:hashconnect
- name: Create .npmrc hashconnect
run: |
cd hashconnect/lib && cat << EOF > .npmrc
@hashgraph:registry=https://us-npm.pkg.dev/hedera-registry/stablecoin-npm/
//us-npm.pkg.dev/hedera-registry/stablecoin-npm/:_authToken="${{ steps.auth.outputs.access_token }}"
//us-npm.pkg.dev/hedera-registry/stablecoin-npm/:always-auth=true
EOF
- name: Publish hashconnect package
run: npm run publish:hashconnect
- name: Install sdk dependencies
run: npm run install:sdk
- name: Create .npmrc sdk
run: |
cd sdk && cat << EOF > .npmrc
@hashgraph:registry=https://us-npm.pkg.dev/hedera-registry/stablecoin-npm/
//us-npm.pkg.dev/hedera-registry/stablecoin-npm/:_authToken="${{ steps.auth.outputs.access_token }}"
//us-npm.pkg.dev/hedera-registry/stablecoin-npm/:always-auth=true
EOF
- name: Publish sdk package
run: npm run publish:sdk
- name: Install cli dependencies
run: npm run install:cli
- name: Create .npmrc cli
run: |
cd cli && cat << EOF > .npmrc
@hashgraph:registry=https://us-npm.pkg.dev/hedera-registry/stablecoin-npm/
//us-npm.pkg.dev/hedera-registry/stablecoin-npm/:_authToken="${{ steps.auth.outputs.access_token }}"
//us-npm.pkg.dev/hedera-registry/stablecoin-npm/:always-auth=true
EOF
- name: Publish cli package
run: npm run publish:cli
env:
CI: ""

45 changes: 0 additions & 45 deletions .github/workflows/cli.publish.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/cli.test.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/contracts.publish.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/contracts.test.yml

This file was deleted.

Loading

0 comments on commit 2449adf

Please sign in to comment.