- Added AccessControl to ComboHandler for role-based access management. - Implemented gas estimation for plan execution and improved gas limit checks. - Updated execution and preparation methods to enforce step count limits and role restrictions. - Enhanced error handling in orchestrator API endpoints with AppError for better validation feedback. - Integrated request timeout middleware for improved request management. - Updated Swagger documentation to reflect new API structure and parameters.
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
name: Code Quality
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main, develop]
|
|
|
|
jobs:
|
|
sonarqube:
|
|
name: SonarQube Analysis
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: SonarQube Scan
|
|
uses: sonarsource/sonarqube-scan-action@master
|
|
env:
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
|
|
|
code-quality:
|
|
name: Code Quality Checks
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "18"
|
|
- name: Install dependencies
|
|
run: |
|
|
cd webapp && npm ci
|
|
cd ../orchestrator && npm ci
|
|
- name: Lint
|
|
run: |
|
|
cd webapp && npm run lint
|
|
cd ../orchestrator && npm run lint || echo "Lint script not configured"
|
|
- name: Type Check
|
|
run: |
|
|
cd webapp && npx tsc --noEmit
|
|
cd ../orchestrator && npx tsc --noEmit
|
|
|