Skip to content

Commit

Permalink
Add initial TSL patch testing (#977)
Browse files Browse the repository at this point in the history
* Add examples-jsm

* Update

* Add examples

* Add patch

* Delete examples

* Add examples

* Update patch

* Delete examples

* Add examples

* Update patch and delete examples

* Add examples

* Update and delete examples

* Add examples

* Update patch and delete examples

* Update

* Update patch

* Update

* Add CI
  • Loading branch information
Methuselah96 authored May 24, 2024
1 parent 04ef205 commit 8959619
Show file tree
Hide file tree
Showing 10 changed files with 651 additions and 0 deletions.
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

0 comments on commit 8959619

Please sign in to comment.