mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
Fix tests
This commit is contained in:
1 parent
f016160539
commit
f18e1115ba
6 files changed
+18835
-5466
No files matched your search
@@ -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
|
||||
Generated
+18815
-5448
File diff suppressed because it is too large.
Load diff
@@ -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"
|
||||
},
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
},
|
||||
"dev": {
|
||||
"cache": false
|
||||
},
|
||||
"test": {
|
||||
"cache": false
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user