Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial TSL patch testing #977

Merged
merged 18 commits into from
May 24, 2024
Merged
1 change: 1 addition & 0 deletions .dprint.jsonc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"excludes": [
"./examples-jsm",
"./examples-testing",
"./three.js",
"pnpm-lock.yaml"
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,23 @@ jobs:
working-directory: examples-testing
- run: pnpm run format-check
working-directory: examples-testing
test-examples-jsm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'pnpm'
- run: pnpm install
- run: pnpm run create-examples
working-directory: examples-jsm
- run: git apply changes.patch
working-directory: examples-jsm
- run: pnpm run format-check
working-directory: examples-jsm
8 changes: 8 additions & 0 deletions examples-jsm/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "http://json.schemastore.org/prettierrc",
"arrowParens": "avoid",
"singleQuote": true,
"trailingComma": "all",
"tabWidth": 4,
"printWidth": 120
}
22 changes: 22 additions & 0 deletions examples-jsm/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Update patch

- `pnpm run create-examples`
- Commit changes
- `git apply changes.patch`
- Make changes
- `pnpm run type-check`
- `git diff > ../changes.patch`
- Reset changes
- Move patch file

# Update sources

- `pnpm run create-examples`
- Commit changes
- `git apply --reject changes.patch`
- Fix conflicts
- `pnpm run type-check`
- `git diff > ../changes.patch`
- Reset example changes
- Move patch file
- Commit changes
Loading
Loading