Skip to content

Commit

Permalink
feat: use monorepo architecture to manage different packages
Browse files Browse the repository at this point in the history
Signed-off-by: Anmol Sharma <anmolsharma0234@gmail.com>
  • Loading branch information
theanmolsharma committed Feb 25, 2024
1 parent 295958e commit c1956c1
Show file tree
Hide file tree
Showing 56 changed files with 345 additions and 1,126 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
if: success() || failure()
run: npm run lint
- name: Run Typescript Compilation Check
run: npm run types:check
run: npm run types:check -ws
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Start test containers
run: docker-compose -f "./test/helpers/docker-compose.yaml" up -d
run: docker-compose -f "./dev/docker-compose.yaml" up -d
- name: Setup node
uses: actions/setup-node@v3
with:
Expand All @@ -37,14 +37,14 @@ jobs:
max_attempts: 15
command: curl --fail -X GET http://localhost:8094/regtest/api/blocks/tip/height
- name: Run unit tests
run: npm run test
run: npm run test --ws
env:
BITCOIN_RPC_USER: alice
BITCOIN_RPC_PASSWORD: password
BITCOIN_RPC_HOST: localhost:18443
- name: Fetch esplora logs
if: always()
run: docker-compose -f "./test/helpers/docker-compose.yaml" logs esplora
run: docker-compose -f "./dev/docker-compose.yaml" logs esplora
- name: Stop test containers
if: always()
run: docker-compose -f "./test/helpers/docker-compose.yaml" down
run: docker-compose -f './dev/docker-compose.yaml" down
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ module.exports = {
preset: 'ts-jest',
verbose: true,
testEnvironment: 'node',
rootDir: '.',
roots: ['<rootDir>/test/'],
testRegex: '.*\\.spec\\.ts$',
transform: {
'^.+\\.(t|j)s$': 'ts-jest',
},
collectCoverageFrom: ['<rootDir>/src/**/*.(t|j)s'],
coveragePathIgnorePatterns: ['.*.spec.ts'],
coverageDirectory: './coverage',
testTimeout: 30000,
};
Loading

0 comments on commit c1956c1

Please sign in to comment.