Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: add build check to studio ci

TzeYiing797e8c00a183
diff --git a/.github/workflows/studio-tests.yml b/.github/workflows/studio-tests.yml
index 766fddf9226..4a540f652a8 100644
--- a/.github/workflows/studio-tests.yml
+++ b/.github/workflows/studio-tests.yml
@@ -1,7 +1,7 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
-name: Studio Unit Tests
+name: Studio Unit Tests & Build Check
on:
push:
@@ -15,13 +15,15 @@ on:
- 'studio/**'
- 'package-lock.json'
jobs:
- build:
+ check:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
- # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
+ cmd:
+ - npm run test:studio
+ - npm run build:studio
steps:
- uses: actions/checkout@v3
@@ -33,6 +35,6 @@ jobs:
- name: Install deps
run: npm ci
working-directory: ./
- - name: Run tests
- run: npm run test:studio
+ - name: Run ${{ matrix.cmd }}
+ run: ${{ matrix.cmd }}
working-directory: ./
diff --git a/package.json b/package.json
index ff003cd5799..50145626e34 100644
--- a/package.json
+++ b/package.json
@@ -15,6 +15,7 @@
],
"scripts": {
"build": "turbo run build",
+ "build:studio": "turbo run build --filter=studio",
"dev": "turbo run dev --parallel",
"dev:reference": "turbo run dev --filter=reference --parallel",
"dev:studio": "turbo run dev --filter=studio --parallel",