diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a3e6bb..ee2125a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 diff --git a/vc-di-tests/integration-tests/assertion_contracts.test.ts b/vc-di-tests/integration-tests/assertion_contracts.test.ts index 2a36b9a..0474489 100644 --- a/vc-di-tests/integration-tests/assertion_contracts.test.ts +++ b/vc-di-tests/integration-tests/assertion_contracts.test.ts @@ -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, @@ -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) + } + ) + } })