-
Notifications
You must be signed in to change notification settings - Fork 180
43 lines (37 loc) · 1.21 KB
/
Copy pathbackend-academy.yml
File metadata and controls
43 lines (37 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: BackendAcademy CI
on:
push:
branches: [ main ]
paths:
- 'BackendAcademy/**'
- '.github/workflows/backend-academy.yml'
pull_request:
branches: [ main ]
paths:
- 'BackendAcademy/**'
- '.github/workflows/backend-academy.yml'
jobs:
integration-and-ai-tests:
name: Learner journey & AI tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: BackendAcademy
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
# --legacy-peer-deps: joi-to-typescript (devDependency) pins joi@17
# while the app targets joi@18.
run: npm ci --no-audit --no-fund --legacy-peer-deps
# BA-075: the end-to-end learner submission journey (happy, retry,
# unauthorized, partial-failure paths) plus the AI provider/service
# suites run in CI with isolated in-memory fixtures.
- name: Run learner-journey integration & AI tests
env:
NODE_ENV: test
run: npx jest --config jest.config.ts --runInBand src/integration/learner-journey.spec.ts src/ai