Skip to content

Commit

Permalink
Add helper scripts for building and testing all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasDower committed Oct 10, 2023
1 parent 06a915d commit 87facde
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build_sandbox.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Build-Sandbox
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
working-directory: ./Sandbox
run: npm ci
- name: Run build
working-directory: ./Sandbox
run: npm run build
13 changes: 13 additions & 0 deletions .github/workflows/tests_sandbox.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Tests-Sandbox
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
working-directory: ./Sandbox
run: npm ci
- name: Run tests
working-directory: ./Sandbox
run: npm test
3 changes: 2 additions & 1 deletion Editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"test": "tests"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "echo \"Nothing to build\" && exit 0",
"test": "echo \"No tests\" && exit 0"
},
"keywords": [],
"author": "",
Expand Down
3 changes: 2 additions & 1 deletion Sandbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "echo \"Nothing to build\" && exit 0",
"test": "echo \"No tests\" && exit 0"
},
"keywords": [],
"author": "",
Expand Down
10 changes: 10 additions & 0 deletions build_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

echo "Building Core..."
npm run build --prefix Core

echo "Building Editor..."
npm run build --prefix Editor

echo "Building Sandbox..."
npm run build --prefix Sandbox
10 changes: 10 additions & 0 deletions test_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

echo "Testing Core..."
npm run test --prefix Core

echo "Testing Editor..."
npm run test --prefix Editor

echo "Testing Sandbox..."
npm run test --prefix Sandbox

0 comments on commit 87facde

Please sign in to comment.