From 797e8c00a183e75c8db5734273e8a315e970e2aa Mon Sep 17 00:00:00 2001 From: TzeYiing Date: Wed, 17 May 2023 12:21:44 +0800 Subject: [PATCH] chore: add build check to studio ci --- .github/workflows/studio-tests.yml | 12 +++++++----- package.json | 1 + 2 files changed, 8 insertions(+), 5 deletions(-) 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",