-
Notifications
You must be signed in to change notification settings - Fork 325
42 lines (42 loc) · 1.08 KB
/
build.yaml
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
name: smoke-build
on:
push:
pull_request:
jobs:
build-cdk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "20"
- name: Formatting
run: |
npm ci
cd ./lib/user-interface/react-app
npm ci
cd -
npm run lint
- name: Backend
run: |
npm ci
npm audit
npm run build
npm run test
npx cdk synth
- name: PyTests
# Suppression of pip audit failure until langchain is upgraded.
run: |
pip install -r pytest_requirements.txt
flake8 .
bandit -c bandit.yaml -r .
pip-audit -r pytest_requirements.txt
pip-audit -r lib/shared/web-crawler-batch-job/requirements.txt
pip-audit -r lib/shared/file-import-batch-job/requirements.txt
pytest tests/
- name: Frontend
working-directory: ./lib/user-interface/react-app
run: |
npm ci
npm audit
npm run build