Fix tests

This commit is contained in:
Joshen Lim committed 2022-10-06 17:35:25 +08:00
1 parent f016160539
commit f18e1115ba
6 files changed
+18835 -5466

No files matched your search

+14 -15
View File
@@ -5,16 +5,15 @@ name: Studio Unit Tests
on:
push:
branches: [ master ]
branches: [master]
paths:
- 'studio/**'
pull_request:
branches: [ master ]
branches: [master]
paths:
- 'studio/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
@@ -23,15 +22,15 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install deps
run: npm ci
working-directory: ./
- name: Run tests
run: npm test
working-directory: ./studio
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install deps
run: npm ci
working-directory: ./
- name: Run tests
run: npm run test:studio
working-directory: ./studio
+18815 -5448
View File
File diff suppressed because it is too large. Load diff
+2
View File
@@ -11,6 +11,7 @@
"apps/temp-docs",
"apps/www",
"studio",
"tests",
"packages/*"
],
"scripts": {
@@ -25,6 +26,7 @@
"docker:down": "cd docker && docker-compose -f docker-compose.yml -f ./dev/docker-compose.dev.yml down --remove-orphans",
"docker:remove": "cd docker && docker-compose -f docker-compose.yml -f ./dev/docker-compose.dev.yml rm -vfs",
"test": "jest",
"test:studio": "turbo run test --filter=studio",
"perf:kong": "ab -t 5 -c 20 -T application/json http://localhost:8000/",
"perf:meta": "ab -t 5 -c 20 -T application/json http://localhost:5555/tables"
},
+1 -1
View File
@@ -5,7 +5,7 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
})
// this is required to use shared packages in the packages directory
const withTM = require('next-transpile-modules')(['ui', 'common'])
const withTM = require('next-transpile-modules')(['ui'])
// This file sets a custom webpack configuration to use your Next.js app
// with Sentry.
-2
View File
@@ -78,7 +78,6 @@
"sqlstring": "^2.3.2",
"swr": "^1.2.1",
"ui": "*",
"common": "*",
"uniforms-bootstrap4": "^3.6.2",
"uniforms-bridge-json-schema": "^3.6.2",
"uuid": "^8.3.2",
@@ -86,7 +85,6 @@
"zxcvbn": "^4.4.2"
},
"devDependencies": {
"common": "*",
"config": "*",
"@babel/core": "^7.17.5",
"@storybook/addon-actions": "^6.4.19",
+3
View File
@@ -9,6 +9,9 @@
},
"dev": {
"cache": false
},
"test": {
"cache": false
}
}
}