Skip to content

Commit

Permalink
script
Browse files Browse the repository at this point in the history
  • Loading branch information
ggetz committed Sep 18, 2023
1 parent a9d7bef commit 67c20c6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 27 deletions.
29 changes: 2 additions & 27 deletions .github/actions/verify-package/action.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,7 @@
name: verify node package
description: verifies Node.js use of the npm package
runs:
using: "composite"
steps:
- run: node -e "const Cesium = require('./');"
shell: bash
- run: NODE_ENV=development node Specs/test.cjs
shell: bash
- run: NODE_ENV=production node Specs/test.cjs
shell: bash
- run: node Specs/test.mjs
shell: bash
- run: node packages/engine/Specs/test.mjs
shell: bash
- run: node packages/widgets/Specs/test.mjs
shell: bash
- run: mkdir ../test
shell: bash
- run: cp cesium-*.tgz ../test
shell: bash
- run: cp Specs/test.*js ../test
shell: bash
- run: cd ../test
shell: bash
- run: npm install cesium-*.tgz
shell: bash
- run: NODE_ENV=development node test.cjs
shell: bash
- run: NODE_ENV=production node test.cjs
shell: bash
- run: node test.mjs
- run: $GITHUB_ACTION_PATH/script.sh
shell: bash
20 changes: 20 additions & 0 deletions .github/actions/verify-package/script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
set -ev

node -e "const Cesium = require('./');"
NODE_ENV=development node Specs/test.cjs
NODE_ENV=production node Specs/test.cjs
node Specs/test.mjs

node packages/engine/Specs/test.mjs
node packages/widgets/Specs/test.mjs

mkdir ../test
cp cesium-*.tgz ../test
cp Specs/test.*js ../test
cd ../test

npm install cesium-*.tgz
NODE_ENV=development node test.cjs
NODE_ENV=production node test.cjs
node test.mjs

0 comments on commit 67c20c6

Please sign in to comment.