Skip to content

Commit

Permalink
Add ES5 validation
Browse files Browse the repository at this point in the history
This makes sure that the main library code is ES5 compatible and ES6
features aren't used accidentally.
  • Loading branch information
zeux committed Aug 19, 2024
1 parent 58b1b8a commit ea69275
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ jobs:
run: node js/meshopt_encoder.test.js
- name: test simplifier
run: node js/meshopt_simplifier.test.js
- name: check es5
run: |
npm install -g es-check
npx es-check es5 js/meshopt_decoder.js js/meshopt_encoder.js js/meshopt_simplifier.js
npx es-check --module es5 js/meshopt_decoder.module.js js/meshopt_encoder.module.js js/meshopt_simplifier.module.js
npx es-check es5 gltf/library.js
gltfpack:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ea69275

Please sign in to comment.