Skip to content

Commit

Permalink
Sprint 58 (#1237)
Browse files Browse the repository at this point in the history
* fix: hwc dapp signature

Signed-off-by: jaime-iobermudez <[email protected]>

* fix: transaction service test
Signed-off-by: jaime-iobermudez <[email protected]>

Signed-off-by: jaime-iobermudez <[email protected]>

* fix: transaction service test

Signed-off-by: jaime-iobermudez <[email protected]>

* chore: [BBND-469] npm workspaces (#1235)

* chore: update to npm workspaces

Signed-off-by: Manu Fernández <[email protected]>

* chore: update dependencies

Signed-off-by: Manu Fernández <[email protected]>

* chore: test backend actions

Signed-off-by: Manu Fernández <[email protected]>

* chore: test backend actions

Signed-off-by: Manu Fernández <[email protected]>

* chore: add root package-lock.json

Signed-off-by: Manu Fernández <[email protected]>

* chore: update test actions

Signed-off-by: Manu Fernández <[email protected]>

* chore: update install and build actions

Signed-off-by: Manu Fernández <[email protected]>

* chore: update install and build actions

Signed-off-by: Manu Fernández <[email protected]>

* chore: update install and build actions

Signed-off-by: Manu Fernández <[email protected]>

* chore: update install and build actions

Signed-off-by: Manu Fernández <[email protected]>

* chore: change rimraf to dev dependency

Signed-off-by: Manu Fernández <[email protected]>

* chore: update contract actions

Signed-off-by: Manu Fernández <[email protected]>

* chore: update contract actions

Signed-off-by: Manu Fernández <[email protected]>

* chore: update contract actions

Signed-off-by: Manu Fernández <[email protected]>

* chore: update cli actions

Signed-off-by: Manu Fernández <[email protected]>

* chore: update axios moduleNameMapper

Signed-off-by: Manu Fernández <[email protected]>

* fix: remove specific version in shared packages and include npx command

Signed-off-by: Manu Fernández <[email protected]>

* fix: update package.json scripts

Signed-off-by: Manu Fernández <[email protected]>

* fix: update package.json husky script

Signed-off-by: Manu Fernández <[email protected]>

---------

Signed-off-by: Manu Fernández <[email protected]>

* chore: bump version to 1.27.1 across packages

Signed-off-by: Mario Francia <[email protected]>

---------

Signed-off-by: jaime-iobermudez <[email protected]>
Signed-off-by: Manu Fernández <[email protected]>
Signed-off-by: Mario Francia <[email protected]>
Co-authored-by: Manu Fernández <[email protected]>
Co-authored-by: Mario Francia <[email protected]>
  • Loading branch information
3 people authored Jan 10, 2025
1 parent 13510ce commit 88b220d
Show file tree
Hide file tree
Showing 29 changed files with 48,524 additions and 88,026 deletions.
21 changes: 7 additions & 14 deletions .github/actions/install-and-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,43 +11,36 @@ runs:
steps:
- name: Install Contracts
shell: sh
run: npm ci
working-directory: contracts
run: npm ci --workspace=contracts

- name: Build Contracts
shell: sh
run: npm run compile:force
working-directory: contracts
run: npm run compile:force --workspace=contracts

- name: Install SDK
if: ${{ inputs.module == 'sdk' || inputs.module == 'cli' || inputs.module == 'web' }}
shell: sh
run: npm ci
working-directory: sdk
run: npm ci --workspace=sdk

- name: Build SDK
if: ${{ inputs.module == 'sdk' || inputs.module == 'cli' || inputs.module == 'web' }}
shell: sh
run: npm run build
working-directory: sdk
run: npm run build --workspace=sdk

- name: Install CLI
if: ${{ inputs.module == 'cli' }}
shell: sh
run: npm ci
working-directory: cli
run: npm ci --workspace=cli

- name: Build CLI
if: ${{ inputs.module == 'cli' }}
shell: sh
run: npm run build
working-directory: cli
run: npm run build --workspace=cli

- name: Install Web
if: ${{ inputs.module == 'web' }}
shell: sh
run: npm ci
working-directory: web
run: npm ci --workspace=web

# - name: Build Web
# if: ${{ inputs.module == 'web' }}
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/test-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ on:
paths:
- "backend/src/**"
- "backend/test/**"
- "backend/package*.json"
- "backend/tsconfig*.json"
- "package*.json"
push:
branches:
- main
paths:
- "backend/src/**"
- "backend/test/**"
- "backend/package*.json"
- "backend/tsconfig*.json"
- "package*.json"
# env:
# NODE_VERSION: "20.17.0" # Fixed version for better stability

Expand Down Expand Up @@ -45,16 +45,12 @@ jobs:
# * Specific steps for the Backend
- name: Install dependencies
run: npm ci
working-directory: backend

- name: Build Backend
run: npm run build
working-directory: backend
run: npm run build --workspace=backend

- name: Run Backend Tests
run: npm run test:ci
working-directory: backend
run: npm run test:ci --workspace=backend

- name: Clear Cache
run: npm run clear-cache
working-directory: backend
run: npm run clear-cache --workspace=backend
10 changes: 4 additions & 6 deletions .github/workflows/test-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
paths:
- "cli/src/**"
- "cli/test/**"
- "cli/package*.json"
- "package*.json"
- "cli/tsconfig*.json"
- "cli/jest.config.js"
push:
Expand All @@ -14,7 +14,7 @@ on:
paths:
- "cli/src/**"
- "cli/test/**"
- "cli/package*.json"
- "package*.json"
- "cli/tsconfig*.json"
- "cli/jest.config.js"

Expand Down Expand Up @@ -55,9 +55,7 @@ jobs:

# * Specific steps for the CLI
- name: Run tests CLI
run: npm run test:ci
working-directory: cli
run: npm run test:ci --workspace=cli

- name: Clear Cache
run: npm run clear-cache
working-directory: cli
run: npm run clear-cache --workspace=cli
10 changes: 4 additions & 6 deletions .github/workflows/test-contracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- "contracts/contracts/**"
- "contracts/test/**"
- "contracts/scripts/**"
- "contracts/package*.json"
- "package*.json"
- "contracts/hardhat.config.ts"
- "contracts/tsconfig.json"
push:
Expand All @@ -16,7 +16,7 @@ on:
- "contracts/contracts/**"
- "contracts/test/**"
- "contracts/scripts/**"
- "contracts/package*.json"
- "package*.json"
- "contracts/hardhat.config.ts"
- "contracts/tsconfig.json"
# env:
Expand Down Expand Up @@ -62,9 +62,7 @@ jobs:

# * Actual test command
- name: Run
run: npm run test:ci
working-directory: contracts
run: npm run test:ci --workspace=contracts

- name: Clean project
run: npm run clean
working-directory: contracts
run: npm run clean --workspace=contracts
10 changes: 4 additions & 6 deletions .github/workflows/test-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- "sdk/src/**"
- "sdk/test/**"
- "sdk/scripts/**"
- "sdk/package*.json"
- "package*.json"
- "sdk/tsconfig*.json"
- "sdk/jest.config.js"
push:
Expand All @@ -16,7 +16,7 @@ on:
- "sdk/src/**"
- "sdk/test/**"
- "sdk/scripts/**"
- "sdk/package*.json"
- "package*.json"
- "sdk/tsconfig*.json"
- "sdk/jest.config.js"
# env:
Expand Down Expand Up @@ -65,9 +65,7 @@ jobs:
# * Specific steps for the SDK

- name: Run SDK Tests
run: npm run test:ci
working-directory: sdk
run: npm run test:ci --workspace=sdk

- name: Clear Cache
run: npm run clear-cache
working-directory: sdk
run: npm run clear-cache --workspace=sdk
10 changes: 4 additions & 6 deletions .github/workflows/test-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ on:
pull_request:
paths:
- "web/src/**"
- "web/package*.json"
- "package*.json"
- "web/tsconfig*.json"
push:
branches:
- main
paths:
- "web/src/**"
- "web/package*.json"
- "package*.json"
- "web/tsconfig*.json"
# env:
# NODE_VERSION: "20.17.0" # Fixed version for better stability
Expand Down Expand Up @@ -46,9 +46,7 @@ jobs:

# * Specific steps for the Web
- name: Run tests Web
run: npm run test:ci
working-directory: web
run: npm run test:ci --workspace=web

- name: Clear Cache
run: npm run clear-cache
working-directory: web
run: npm run clear-cache --workspace=web
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ node_modules/
.npm/

# Lock files
package-lock.json
# package-lock.json

# Logs
logs/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ Learn more about them in their README:
In a terminal:

```
npm install
npm run install:all
```

This will install the dependencies in all projects and sets up the links between them.
Expand Down
Loading

0 comments on commit 88b220d

Please sign in to comment.