Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed Mar 27, 2024
1 parent 413c0e1 commit 2a9ec56
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 57 deletions.
29 changes: 0 additions & 29 deletions .github/actions/setup-indy-pool/action.yml

This file was deleted.

22 changes: 2 additions & 20 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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:
Expand All @@ -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()
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 0 additions & 5 deletions packages/rest/src/utils/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -57,10 +56,6 @@ export type RestRootAgentWithTenants = Agent<ModulesWithoutTenants & { tenants:
export type RestTenantAgent = TenantAgent<ModulesWithoutTenants>
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
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true
"emitDecoratorMetadata": true,
"skipLibCheck": true
},
"exclude": [
"node_modules",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -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"]
},
Expand Down

0 comments on commit 2a9ec56

Please sign in to comment.