Skip to content

Commit

Permalink
log env
Browse files Browse the repository at this point in the history
  • Loading branch information
0xverin committed Oct 25, 2024
1 parent 0c25688 commit d27b8ed
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 43 deletions.
28 changes: 10 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@ jobs:
runs-on: ubuntu-latest
needs:
- contracts-uint-tests

env:
TWITTER_AUTH_TOKEN_V2: ${{ secrets.TWITTER_AUTH_TOKEN_V2 }}
DISCORD_AUTH_TOKEN: ${{ secrets.DISCORD_AUTH_TOKEN }}
ACHAINABLE_AUTH_KEY: ${{ secrets.ACHAINABLE_AUTH_KEY }}
ONEBLOCK_NOTION_KEY: ${{ secrets.ONEBLOCK_NOTION_KEY }}
NODEREAL_API_KEY: ${{ secrets.NODEREAL_API_KEY }}
GENIIDATA_API_KEY: ${{ secrets.GENIIDATA_API_KEY }}
MORALIS_API_KEY: ${{ secrets.MORALIS_API_KEY }}
MAGIC_CRAFT_API_KEY: ${{ secrets.MAGIC_CRAFT_API_KEY }}
steps:
- uses: actions/checkout@v4

Expand All @@ -70,24 +80,6 @@ jobs:
- run: docker images --all

- name: Create env file with secrets
run: |
mkdir -p /opt/worker_configs
echo "TWITTER_AUTH_TOKEN_V2=${{ secrets.TWITTER_AUTH_TOKEN_V2 }}" >> /opt/worker_configs/worker_env
echo "DISCORD_AUTH_TOKEN=${{ secrets.DISCORD_AUTH_TOKEN }}" >> /opt/worker_configs/worker_env
echo "ACHAINABLE_AUTH_KEY=${{ secrets.ACHAINABLE_AUTH_KEY }}" >> /opt/worker_configs/worker_env
echo "ONEBLOCK_NOTION_KEY=${{ secrets.ONEBLOCK_NOTION_KEY }}" >> /opt/worker_configs/worker_env
echo "NODEREAL_API_KEY=${{ secrets.NODEREAL_API_KEY }}" >> /opt/worker_configs/worker_env
echo "GENIIDATA_API_KEY=${{ secrets.GENIIDATA_API_KEY }}" >> /opt/worker_configs/worker_env
echo "MORALIS_API_KEY=${{ secrets.MORALIS_API_KEY }}" >> /opt/worker_configs/worker_env
echo "MAGIC_CRAFT_API_KEY=${{ secrets.MAGIC_CRAFT_API_KEY }}" >> /opt/worker_configs/worker_env
shell: bash

- name: Start parachain-worker
run: |
./scripts/run_parachain_worker.sh
docker ps
- name: Compile contracts
run: |
npm install --save-dev hardhat
Expand Down
56 changes: 31 additions & 25 deletions vc-di-tests/integration-tests/assertion_contracts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,18 @@ describe('Test Vc (direct request)', function () {
}
}
before(async () => {
const parachainEndpoint = process.env.PARACHAIN_ENDPOINT
if (!parachainEndpoint) {
throw new Error(
'PARACHAIN_ENDPOINT environment variable is missing.'
)
}
console.log(
`process.env.GENIIDATA_API_KEY!`,
process.env.GENIIDATA_API_KEY!
)
console.log(
`process.env.NODEREAL_API_KEY!`,
process.env.NODEREAL_API_KEY!
)
console.log(
`process.env.MORALIS_API_KEY!`,
process.env.MORALIS_API_KEY!
)

context = await initIntegrationTestContext(
nodeEndpoint,
Expand Down Expand Up @@ -334,26 +340,26 @@ describe('Test Vc (direct request)', function () {
await sleep(12)
})

for (const [index, credentialDefinition] of credentialsJson.entries()) {
step(
`linking identity ${credentialDefinition.mockDid} via cli`,
async function () {
const keyringPair = generateSubstrateAddress(
credentialDefinition.index
)
keyringPairs.push(keyringPair)
for (const [index, credentialDefinition] of credentialsJson.entries()) {
step(
`linking identity ${credentialDefinition.mockDid} via cli`,
async function () {
const keyringPair = generateSubstrateAddress(
credentialDefinition.index
)
keyringPairs.push(keyringPair)

const substrateIdentity = await new PolkadotSigner(
keyringPair
).getIdentity(context)
substrateIdentities.push(substrateIdentity)
const substrateIdentity = await new PolkadotSigner(
keyringPair
).getIdentity(context)
substrateIdentities.push(substrateIdentity)

await linkIdentityViaCli(credentialDefinition, index)
await requestVc(credentialDefinition, index)
console.log('waiting 12 seconds...')
await linkIdentityViaCli(credentialDefinition, index)
await requestVc(credentialDefinition, index)
console.log('waiting 12 seconds...')

await sleep(12)
}
)
}
await sleep(12)
}
)
}
})

0 comments on commit d27b8ed

Please sign in to comment.