Skip to content

Commit

Permalink
Merge commit 'e3223471d56d8258546875703a4bc72210119941' into test-mer…
Browse files Browse the repository at this point in the history
…ge-1.119
  • Loading branch information
danielpm9 committed Aug 5, 2024
2 parents eef5e7c + e322347 commit ccc9fb8
Show file tree
Hide file tree
Showing 407 changed files with 10,550 additions and 15,473 deletions.
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ packages/engine/Build/**
packages/engine/Source/Scene/GltfPipeline/**
packages/engine/Source/Shaders/**
packages/engine/Source/ThirdParty/**
packages/engine/Source/Workers/**
!packages/engine/Source/Workers/transferTypedArrayTest.js

# packages/widgets
packages/widgets/Build/**
Expand Down
28 changes: 0 additions & 28 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

50 changes: 50 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Report a bug
description: Let us know so we can fix it!
labels: ["needs triage", "type - bug"]
body:
- type: markdown
attributes:
value: |
Thanks for helping us improve CesiumJS! Please describe what the expected behavior is vs what actually happens.
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen?
validations:
required: true
- type: textarea
id: repro
attributes:
label: Reproduction steps
description: "How do you trigger this bug? Please walk us through it step by step."
value: |
1.
2.
3.
...
- type: input
id: sandcastle
attributes:
label: Sandcastle example
description: Creating a Sandcastle example (https://sandcastle.cesium.com) that reproduces the issue helps us a lot in tracking down bugs. Paste the link you get from the "Share" button in Sandcastle below.
placeholder: ex. https://sandcastle.cesium.com/...
validations:
required: false
- type: textarea
id: environment
attributes:
label: Environment
description: What Browsers, OS, and CesiumJS version are you experiencing this issue on?
value: |
Browser:
CesiumJS Version:
Operating System:
- type: markdown
attributes:
value: |
If you can also contribute a fix, we'd absolutely appreciate it! Fixing a bug in CesiumJS often means fixing a bug for thousands of applications and millions of end users.
Check out the contributor guide to get started: [CONTRIBUTING.md](https://github.com/CesiumGS/cesium/blob/main/CONTRIBUTING.md)
Just let us know you're working on it and we'd be happy to provide advice and feedback.
14 changes: 0 additions & 14 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Request a feature
description: New ideas & improvements to CesiumJS are always welcome.
labels: ["needs triage", "type - enhancement"]
body:
- type: markdown
attributes:
value: |
Thanks for helping make CesiumJS better!
When suggesting an idea, give examples of the intended use case. Features that benefit the wider community are more likely to be prioritized.
- type: textarea
id: new-feature
attributes:
label: Feature
validations:
required: true
- type: markdown
attributes:
value: |
The best way to get your ideas into CesiumJS is to help us! We love contributions and are always happy to be provide feedback and advice. Check out the contributor guide to get started: [CONTRIBUTING.md](https://github.com/CesiumGS/cesium/blob/main/CONTRIBUTING.md)
6 changes: 0 additions & 6 deletions .github/ISSUE_TEMPLATE/question.md

This file was deleted.

15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/question.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Ask a question
description: Please use the community forum (https://community.cesium.com/) for general questions about using CesiumJS.
labels: ["needs triage"]
body:
- type: markdown
attributes:
value: |
:exclamation: Please use the [community forum](https://community.cesium.com/) for asking questions about how to use CesiumJS and best practices. The core CesiumJS team actively monitors the forum and we love seeing what people are working on! :exclamation:
- type: checkboxes
id: verify
attributes:
label: Verification
description: Confirm you will ask your question on our forums linked above
options:
- label: "Yes"
7 changes: 7 additions & 0 deletions .github/actions/verify-package/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: verify node package
description: verifies Node.js use of the npm package
runs:
using: "composite"
steps:
- run: $GITHUB_ACTION_PATH/script.sh
shell: bash
21 changes: 21 additions & 0 deletions .github/actions/verify-package/script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/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

for filename in packages/**/Specs/test.mjs; do
node $filename
done

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
35 changes: 35 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!--
Thanks for the Pull Request!
Please review [Contribution Guide](https://github.com/CesiumGS/cesium/blob/main/CONTRIBUTING.md) before opening your first Pull Request.
To ensure your Pull Request is reviewed and accepted quickly, please refer to our [Pull Request Guidelines](https://github.com/CesiumGS/cesium/blob/main/CONTRIBUTING.md#pull-request-guidelines).
-->

# Description

<!-- Describe your changes in detail -->

<!-- Consider: Why is this change required? What problem does it solve? -->

<!-- Include screenshots if appropriate -->

## Issue number and link

<!-- If it fixes an open issue, link to the issue here -->

<!-- Consider: If suggesting a new feature or change, discuss it in an issue first. -->

## Testing plan

<!-- Describe in detail how you tested your changes. If this fixes a bug, list the steps to reproduce the original issue. -->

# Author checklist

- [ ] I have submitted a Contributor License Agreement
- [ ] I have added my name to `CONTRIBUTORS.md`
- [ ] I have updated `CHANGES.md` with a short summary of my change
- [ ] I have added or updated unit tests to ensure consistent code coverage
- [ ] I have update the inline documentation, and included code examples where relevant
- [ ] I have performed a self-review of my code
135 changes: 135 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
name: dev
on:
push:
branches-ignore:
- 'cesium.com'
- production
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install node 20
uses: actions/setup-node@v3
with:
node-version: '20'
- name: npm install
run: npm install
- name: lint *.js
run: npm run eslint
- name: lint *.md
run: npm run markdownlint
- name: format code
run: npm run prettier-check
coverage:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1
BRANCH: ${{ github.ref_name }}
steps:
- uses: actions/checkout@v3
- name: install node 18
uses: actions/setup-node@v3
with:
node-version: '18'
- name: npm install
run: npm install
- name: build
run: npm run build
- name: coverage (firefox)
run: npm run coverage -- --browsers FirefoxHeadless --webgl-stub --failTaskOnError --suppressPassed
- name: upload coverage artifacts
if: ${{ env.AWS_ACCESS_KEY_ID != '' }}
run: aws s3 sync ./Build/Coverage s3://cesium-public-builds/cesium/$BRANCH/Build/Coverage --delete --color on
release-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install node 18
uses: actions/setup-node@v3
with:
node-version: '18'
- name: npm install
run: npm install
- name: release build
run: npm run build-release
- name: release tests (chrome)
run: npm run test -- --browsers ChromeHeadless --failTaskOnError --webgl-stub --release --suppressPassed
- name: cloc
run: npm run cloc
deploy:
runs-on: ubuntu-latest
permissions:
statuses: write
contents: read
env:
BUILD_VERSION: ${{ github.ref_name }}.${{ github.run_number }}
AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1
BRANCH: ${{ github.ref_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPO: ${{ github.repository }}
GITHUB_SHA: ${{ github.sha }}
steps:
- uses: actions/checkout@v3
- name: install node 18
uses: actions/setup-node@v3
with:
node-version: '18'
- name: npm install
run: npm install
- name: set the version in package.json
run: npm run deploy-set-version -- --buildVersion $BUILD_VERSION
- name: create release zip
run: npm run make-zip
- name: package cesium module
run: npm pack &> /dev/null
- name: package workspace modules
run: npm pack --workspaces &> /dev/null
- name: build apps
run: npm run build-apps
- uses: ./.github/actions/verify-package
- name: deploy to s3
if: ${{ env.AWS_ACCESS_KEY_ID != '' }}
run: |
aws s3 sync . s3://cesium-public-builds/cesium/$BRANCH/ \
--cache-control "no-cache" \
--exclude ".git/*" \
--exclude ".concierge/*" \
--exclude ".github/*" \
--exclude ".husky/*" \
--exclude ".vscode/*" \
--exclude "Build/Coverage/*" \
--exclude "Build/CesiumDev/*" \
--exclude "Build/Specs/e2e" \
--exclude "Documentation/*" \
--exclude "node_modules/*" \
--exclude "scripts/*" \
--exclude "Tools/*" \
--delete
- name: set status
if: ${{ env.AWS_ACCESS_KEY_ID != '' }}
run: npm run deploy-status -- --status success --message Deployed
node-16:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install node 18
uses: actions/setup-node@v3
with:
node-version: '18'
- name: npm install
run: npm install
- name: release build
run: npm run build-release
- name: package cesium module
run: npm pack &> /dev/null
- name: package workspace modules
run: npm pack --workspaces &> /dev/null
- uses: ./.github/actions/verify-package
Loading

0 comments on commit ccc9fb8

Please sign in to comment.