Skip to content

Commit c59a2f6

Browse files
authored
Merge dev for v1.1.0 release (#926)
2 parents 9ba0435 + 501e4be commit c59a2f6

77 files changed

Lines changed: 17157 additions & 2859 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
**/dist/
44
**/test/
55
**/jest*
6-
**/tsconfig.test.json
76
**/vitest*
87
**/.env*
98
**/.eslint*

.github/workflows/backend-checks.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
branches:
88
- main
99
- dev
10+
- 'feature/**'
1011
paths:
1112
- 'backend/**'
1213

@@ -20,7 +21,6 @@ jobs:
2021
strategy:
2122
matrix:
2223
node-version: [18.x]
23-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2424
steps:
2525
- name: Checkout code
2626
uses: actions/checkout@v3
@@ -30,19 +30,21 @@ jobs:
3030
uses: actions/setup-node@v3
3131
with:
3232
node-version: ${{ matrix.node-version }}
33-
cache: "npm"
34-
cache-dependency-path: "./backend/package-lock.json"
33+
cache: 'npm'
34+
cache-dependency-path: './backend/package-lock.json'
35+
- name: Install dependencies
36+
run: |
37+
npm ci --no-audit
3538
- name: Run job
3639
run: |
37-
npm ci
3840
npx eslint .
3941
npx prettier . --check
42+
4043
build-test:
4144
runs-on: ubuntu-latest
4245
strategy:
4346
matrix:
4447
node-version: [ 18.x ]
45-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
4648
steps:
4749
- name: Checkout code
4850
uses: actions/checkout@v3
@@ -52,10 +54,12 @@ jobs:
5254
uses: actions/setup-node@v3
5355
with:
5456
node-version: ${{ matrix.node-version }}
55-
cache: "npm"
56-
cache-dependency-path: "./backend/package-lock.json"
57+
cache: 'npm'
58+
cache-dependency-path: './backend/package-lock.json'
59+
- name: Install dependencies
60+
run: |
61+
npm ci --no-audit
5762
- name: Run job
5863
run: |
59-
npm ci
6064
npm run build
6165
npm test

.github/workflows/cloud.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Cloud Code Checks
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- main
8+
- dev
9+
- 'feature/**'
10+
paths:
11+
- 'cloud/**'
12+
13+
defaults:
14+
run:
15+
working-directory: ./cloud
16+
17+
jobs:
18+
lint-format:
19+
runs-on: ubuntu-latest
20+
strategy:
21+
matrix:
22+
node-version: [18.x]
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v3
26+
with:
27+
sparse-checkout: |
28+
.prettierrc
29+
cloud
30+
- name: Setup node
31+
uses: actions/setup-node@v3
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
cache: 'npm'
35+
cache-dependency-path: './cloud/package-lock.json'
36+
- name: Install dependencies
37+
run: |
38+
npm ci --no-audit
39+
- name: Run job
40+
run: |
41+
npm run codecheck

.github/workflows/frontend-checks.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
branches:
88
- main
99
- dev
10+
- 'feature/**'
1011
paths:
1112
- 'frontend/**'
1213

@@ -20,7 +21,6 @@ jobs:
2021
strategy:
2122
matrix:
2223
node-version: [18.x]
23-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2424
steps:
2525
- name: Checkout code
2626
uses: actions/checkout@v3
@@ -30,20 +30,22 @@ jobs:
3030
uses: actions/setup-node@v3
3131
with:
3232
node-version: ${{ matrix.node-version }}
33-
cache: "npm"
34-
cache-dependency-path: "./frontend/package-lock.json"
33+
cache: 'npm'
34+
cache-dependency-path: './frontend/package-lock.json'
35+
- name: Install dependencies
36+
run: |
37+
npm ci --no-audit
3538
- name: Run job
3639
run: |
37-
npm ci
3840
npx eslint .
3941
npx stylelint '**/*.css'
4042
npx prettier . --check
43+
4144
build-test:
4245
runs-on: ubuntu-latest
4346
strategy:
4447
matrix:
4548
node-version: [ 18.x ]
46-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
4749
steps:
4850
- name: Checkout code
4951
uses: actions/checkout@v3
@@ -53,10 +55,12 @@ jobs:
5355
uses: actions/setup-node@v3
5456
with:
5557
node-version: ${{ matrix.node-version }}
56-
cache: "npm"
57-
cache-dependency-path: "./frontend/package-lock.json"
58+
cache: 'npm'
59+
cache-dependency-path: './frontend/package-lock.json'
60+
- name: Install dependencies
61+
run: |
62+
npm ci --no-audit
5863
- name: Run job
5964
run: |
60-
npm ci
6165
npm run build
6266
npm test

.github/workflows/k6-checks.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
strategy:
2121
matrix:
2222
node-version: [18.x]
23-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2423
steps:
2524
- name: Checkout code
2625
uses: actions/checkout@v3
@@ -30,10 +29,12 @@ jobs:
3029
uses: actions/setup-node@v3
3130
with:
3231
node-version: ${{ matrix.node-version }}
33-
cache: "npm"
34-
cache-dependency-path: "./k6/package-lock.json"
32+
cache: 'npm'
33+
cache-dependency-path: './k6/package-lock.json'
34+
- name: Install dependencies
35+
run: |
36+
npm ci --no-audit
3537
- name: Run job
3638
run: |
37-
npm ci
3839
npx eslint .
3940
npx prettier . --check

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ pids
1414
*.seed
1515
*.pid.lock
1616

17-
# Directory for instrumented libs generated by jscoverage/JSCover
17+
# Coverage and test output
1818
lib-cov
1919
coverage
2020
*.lcov
21+
reports
2122

2223
# node-waf configuration
2324
.lock-wscript

backend/.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
node_modules
22
build
3+
reports
34
test
45
.env*
56
.eslintrc.cjs

backend/.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = {
2020
],
2121
parser: '@typescript-eslint/parser',
2222
parserOptions: {
23-
project: ['./tsconfig.json', './test/tsconfig.json'],
23+
project: ['./tsconfig.json', 'test/tsconfig.json'],
2424
},
2525
plugins: ['@typescript-eslint', 'jest'],
2626
ignorePatterns: ['build', 'coverage', 'node_modules'],

backend/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
FROM node:lts-alpine
2-
ENV NODE_ENV=production
32

43
WORKDIR /usr/app
54
COPY package*.json ./

backend/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# prompt-injection-api
1+
# SpyLogic : API
22

33
This is the backend module of the SpyLogic app. We are using [Express](https://expressjs.com/) to serve the API.
44

0 commit comments

Comments
 (0)