🐛(discovery-server): fix env type inference and class property error #426
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main, development] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 'lts/*' | |
| cache: 'npm' | |
| - run: npm ci | |
| - run: npm run lint | |
| typecheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 'lts/*' | |
| cache: 'npm' | |
| - run: npm ci | |
| - name: Build packages (dependency order) | |
| run: npm run build | |
| - name: Type-check services | |
| run: | | |
| npm run -w services/message-manager build | |
| npm run -w services/discovery-server build | |
| npm run -w services/financial-scraper build | |
| npm run -w services/trader-trainer build | |
| npm run -w services/certificate-authority build | |
| npm run -w services/api-gateway build | |
| npm run -w services/admin-interface build | |
| npm run -w services/audit-logger build | |
| npm run -w services/dlq-service build | |
| npm run -w packages/certificate-utils build | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 'lts/*' | |
| cache: 'npm' | |
| - run: npm ci | |
| - run: npm run build | |
| - run: npm run test:coverage | |
| - name: Import Codecov GPG key | |
| run: | | |
| gpg --keyserver keyserver.ubuntu.com --recv-keys 27034E7FDB850E0BBC2C62FF806BB28AED779869 | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: true |