diff --git a/.github/workflows/build_sandbox.js.yml b/.github/workflows/build_sandbox.js.yml new file mode 100644 index 0000000..57276b6 --- /dev/null +++ b/.github/workflows/build_sandbox.js.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/tests_sandbox.js.yml b/.github/workflows/tests_sandbox.js.yml new file mode 100644 index 0000000..4c0329c --- /dev/null +++ b/.github/workflows/tests_sandbox.js.yml @@ -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 diff --git a/Editor/package.json b/Editor/package.json index e74e0d3..79d9fff 100644 --- a/Editor/package.json +++ b/Editor/package.json @@ -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": "", diff --git a/Sandbox/package.json b/Sandbox/package.json index 91b513c..1ea5589 100644 --- a/Sandbox/package.json +++ b/Sandbox/package.json @@ -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": "", diff --git a/build_all.sh b/build_all.sh new file mode 100755 index 0000000..4aecd62 --- /dev/null +++ b/build_all.sh @@ -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 \ No newline at end of file diff --git a/test_all.sh b/test_all.sh new file mode 100755 index 0000000..d03a966 --- /dev/null +++ b/test_all.sh @@ -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 \ No newline at end of file