diff --git a/.github/actions/setup-indy-pool/action.yml b/.github/actions/setup-indy-pool/action.yml deleted file mode 100644 index 791548b8..00000000 --- a/.github/actions/setup-indy-pool/action.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Setup Indy Pool -description: Setup an Indy ledger pool and register test did on the ledger -author: 'timo@animo.id' - -inputs: - seed: - description: Seed to register on the ledger - required: true - -runs: - using: composite - steps: - - name: Start indy pool - run: | - docker build -f network/indy-pool.dockerfile -t indy-pool . - docker run -d --name indy-pool -p 9701-9708:9701-9708 indy-pool - shell: bash - - - name: Setup Indy CLI - run: docker exec indy-pool indy-cli-setup - shell: bash - - - name: Register DID on ledger - run: docker exec indy-pool add-did-from-seed ${{ inputs.seed }} TRUSTEE - shell: bash - -branding: - icon: scissors - color: purple diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index ed3c61db..af44b647 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -7,10 +7,6 @@ on: push: branches: [main, 'credo-**'] -env: - TEST_AGENT_PUBLIC_DID_SEED: 000000000000000000000000Trustee9 - GENESIS_TXN_PATH: network/genesis/local-genesis.txn - # Make sure we're not running multiple release steps at the same time as this can give issues with determining the next npm version to release. # Ideally we only add this to the 'release' job so it doesn't limit PR runs, but github can't guarantee the job order in that case: # "When concurrency is specified at the job level, order is not guaranteed for jobs or runs that queue within 5 minutes of each other." @@ -81,11 +77,6 @@ jobs: - name: Checkout credo-ts-ext uses: actions/checkout@v4 - - name: Setup Indy Pool - uses: ./.github/actions/setup-indy-pool - with: - seed: ${TEST_AGENT_PUBLIC_DID_SEED} - - name: Setup node ${{ matrix.node-version }} uses: actions/setup-node@v4 with: @@ -96,17 +87,8 @@ jobs: - name: Install dependencies run: yarn install - - name: Run tests for Push notifications - run: TEST_AGENT_PUBLIC_DID_SEED=${TEST_AGENT_PUBLIC_DID_SEED} GENESIS_TXN_PATH=${GENESIS_TXN_PATH} yarn test push-notifications --coverage - - - name: Run tests for React hooks - run: TEST_AGENT_PUBLIC_DID_SEED=${TEST_AGENT_PUBLIC_DID_SEED} GENESIS_TXN_PATH=${GENESIS_TXN_PATH} yarn test react-hooks --coverage - - - name: Run tests for Redux store - run: TEST_AGENT_PUBLIC_DID_SEED=${TEST_AGENT_PUBLIC_DID_SEED} GENESIS_TXN_PATH=${GENESIS_TXN_PATH} yarn test redux-store --coverage - - - name: Run tests for Rest - run: TEST_AGENT_PUBLIC_DID_SEED=${TEST_AGENT_PUBLIC_DID_SEED} GENESIS_TXN_PATH=${GENESIS_TXN_PATH} yarn test rest --coverage + - name: Run tests + run: yarn test --coverage - uses: codecov/codecov-action@v1 if: always() diff --git a/package.json b/package.json index 1550d520..1b54ac5d 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,9 @@ "private": true, "license": "Apache-2.0", "description": "Monorepo containing extensions for Credo", - "workspaces": ["packages/*"], + "workspaces": [ + "packages/*" + ], "repository": { "url": "https://github.com/openwallet-foundation/credo-ts-ext", "type": "git" diff --git a/packages/rest/src/utils/agent.ts b/packages/rest/src/utils/agent.ts index 0840dd02..e59e3df1 100644 --- a/packages/rest/src/utils/agent.ts +++ b/packages/rest/src/utils/agent.ts @@ -45,7 +45,6 @@ import { TenantsModule } from '@credo-ts/tenants' import { anoncreds } from '@hyperledger/anoncreds-nodejs' import { ariesAskar } from '@hyperledger/aries-askar-nodejs' import { indyVdr } from '@hyperledger/indy-vdr-nodejs' -import path from 'path' import { TsLogger } from './logger' import { BCOVRIN_TEST_GENESIS } from './util' @@ -57,10 +56,6 @@ export type RestRootAgentWithTenants = Agent export type RestAgent = RestRootAgent | RestTenantAgent | RestRootAgentWithTenants -export const genesisPath = process.env.GENESIS_TXN_PATH - ? path.resolve(process.env.GENESIS_TXN_PATH) - : path.join(__dirname, '../../../../network/genesis/local-genesis.txn') - export const getAgentModules = (options: { autoAcceptConnections: boolean autoAcceptProofs: AutoAcceptProof diff --git a/tsconfig.build.json b/tsconfig.build.json index bfef1cfd..0dcde152 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -12,7 +12,8 @@ "allowSyntheticDefaultImports": true, "resolveJsonModule": true, "experimentalDecorators": true, - "emitDecoratorMetadata": true + "emitDecoratorMetadata": true, + "skipLibCheck": true }, "exclude": [ "node_modules", diff --git a/tsconfig.test.json b/tsconfig.test.json index 0cb715dc..100d2109 100644 --- a/tsconfig.test.json +++ b/tsconfig.test.json @@ -1,13 +1,14 @@ { "extends": "./tsconfig.build.json", "compilerOptions": { + "lib": ["ES2021.Promise"], "baseUrl": ".", "paths": { "@credo-ts/react-hooks": ["packages/react-hooks/src"], "@credo-ts/rest": ["packages/rest/src"], "@credo-ts/redux-store": ["packages/redux-store/src"], "@credo-ts/transport-ble": ["packages/transport-ble/src"], - "@credo-tstions": ["packages/push-notifications/src"] + "@credo-ts/push-notifications": ["packages/push-notifications/src"] }, "types": ["jest", "node"] },