feat: add tests for QuickImportService and ReceiptImportService parse flow
This commit is contained in:
@@ -44,10 +44,39 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Run receipt-import focused tests (PR quick)
|
||||
working-directory: ./backend
|
||||
run: npx jest src/receipt-import/receipt-import.service.spec.ts src/receipt-import/receipt-import.parse-flow.spec.ts src/receipt-import/receipt-import.save.spec.ts --no-coverage
|
||||
|
||||
- name: Build NestJS app
|
||||
working-directory: ./backend
|
||||
run: npm run build
|
||||
|
||||
quick-import-pr-quick:
|
||||
if: gitea.event_name == 'pull_request'
|
||||
runs-on: backend-node24
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [24.15.0]
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Install dependencies (backend)
|
||||
working-directory: ./backend
|
||||
run: npm ci
|
||||
|
||||
- name: Run quick-import focused tests (PR quick)
|
||||
working-directory: ./backend
|
||||
run: npx jest src/quick-import/quick-import.service.spec.ts --no-coverage
|
||||
|
||||
backend-full:
|
||||
if: gitea.event_name == 'push'
|
||||
runs-on: backend-node24
|
||||
|
||||
Reference in New Issue
Block a user