Update diagnose.test.js #1438
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install modules | |
| run: | | |
| mkdir ../pyramid | |
| mkdir ../ramp | |
| mkdir ../wedge | |
| mkdir ../hipped | |
| wget -P ../pyramid https://beakerboy.github.io/Threejs-Geometries/src/PyramidGeometry.js | |
| wget -P ../ramp https://beakerboy.github.io/Threejs-Geometries/src/RampGeometry.js | |
| wget -P ../wedge https://beakerboy.github.io/Threejs-Geometries/src/WedgeGeometry.js | |
| wget -P ../hipped https://beakerboy.github.io/Threejs-Geometries/src/HippedGeometry.js | |
| cd ../pyramid | |
| echo '{"name":"pyramid","type":"module","private":true,"scripts":{"test":"npx jest"}}' > "./package.json" && npm init -y | |
| cd ../ramp | |
| echo '{"name":"ramp","type":"module","private":true,"scripts":{"test":"npx jest"}}' > "./package.json" && npm init -y | |
| cd ../wedge | |
| echo '{"name":"wedge","type":"module","private":true,"scripts":{"test":"npx jest"}}' > "./package.json" && npm init -y | |
| cd ../hipped | |
| echo '{"name":"hipped","type":"module","private":true,"scripts":{"test":"npx jest"}}' > "./package.json" && npm init -y | |
| cd ../OSMBuilding | |
| yarn --prod=false | |
| - name: Lint | |
| run: yarn run eslint . | |
| - name: Test | |
| run: CI=true NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules" timeout 20s npm test | |
| - name: Coveralls | |
| uses: coverallsapp/github-action@v2 |