Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/blockchain.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Blockchain CI

on:
push:
branches:
- main
- develop
paths:
- 'contracts/**'
pull_request:
branches:
- main
- develop
paths:
- 'contracts/**'

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Run cargo check for common-utils
run: cd contracts/common-utils/contract && cargo check

- name: Run cargo test for common-utils
run: cd contracts/common-utils/contract && cargo test

- name: Run cargo check for credit-score
run: cd contracts/credit-score && cargo check

- name: Run cargo test for credit-score
run: cd contracts/credit-score && cargo test

- name: Run cargo check for fraud-detect
run: cd contracts/fraud-detect && cargo check

- name: Run cargo test for fraud-detect
run: cd contracts/fraud-detect && cargo test

- name: Run cargo check for governance
run: cd contracts/governance && cargo check

- name: Run cargo test for governance
run: cd contracts/governance && cargo test

- name: Build blockchain contracts
run: pnpm blockchain:build
48 changes: 48 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Frontend CI

on:
push:
branches:
- main
- develop
paths:
- 'frontend/**'
- 'packages/core/**'
pull_request:
branches:
- main
- develop
paths:
- 'frontend/**'
- 'packages/core/**'

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run ESLint
run: pnpm --filter frontend lint

- name: Run tests
run: pnpm --filter frontend test

- name: Build frontend
run: pnpm --filter frontend build
3 changes: 3 additions & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@
"dotenv": "^16.0.0",
"express": "^4.18.0",
"helmet": "^7.0.0",
<<<<<<< HEAD
=======
"winston": "^3.14.2",
"uuid": "^9.0.1",
"prom-client": "^15.1.3",
"@sentry/node": "^8.30.0",
"@opentelemetry/sdk-node": "^0.54.0",
"@opentelemetry/auto-instrumentations-node": "^0.64.1",
"@opentelemetry/exporter-trace-otlp-http": "^0.54.0",
>>>>>>> 4b2e5da5b0789837c58861e705de63b87b64ae63
"ioredis": "^5.8.0",
"reflect-metadata": "^0.2.2",
"typeorm": "^0.3.27"
Expand Down
12 changes: 12 additions & 0 deletions packages/core/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
env: {
node: true,
},
};
Loading
Loading