chore: add build check to studio ci

This commit is contained in:
TzeYiing
2023-05-17 12:21:44 +08:00
parent d0fe8b01b0
commit 797e8c00a1
2 changed files with 8 additions and 5 deletions

View File

@@ -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: ./

View File

@@ -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",