Skip to content

Commit

Permalink
Make files more generic for re-use
Browse files Browse the repository at this point in the history
  • Loading branch information
ggetz committed Oct 19, 2023
1 parent cda6cbe commit a5fb9aa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/actions/verify-package/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ 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
for filename in packages/**/Specs/test.mjs; do
node $filename
done

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

npm install cesium-*.tgz
npm install cesium*.tgz
NODE_ENV=development node test.cjs
NODE_ENV=production node test.cjs
node test.mjs
5 changes: 3 additions & 2 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches-ignore:
- 'cesium.com'
- production
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -111,8 +112,8 @@ jobs:
run: npm install
- name: release build
run: npm run build-release
- name: package "cesium" module
- name: package cesium module
run: npm pack &> /dev/null
- name: package "@cesium/" modules
- name: package workspace modules
run: npm pack --workspaces &> /dev/null
- uses: ./.github/actions/verify-package
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches:
- main
- 'cesium.com'
- production
jobs:
if_error_or_failure:
runs-on: ubuntu-latest
Expand Down

0 comments on commit a5fb9aa

Please sign in to comment.