chore: add build check to studio ci
This commit is contained in:
12
.github/workflows/studio-tests.yml
vendored
12
.github/workflows/studio-tests.yml
vendored
@@ -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: ./
|
||||
|
||||
Reference in New Issue
Block a user