Update buildingpart.test.js #824
Workflow file for this run
This file contains 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 | |
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 | |
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 ../OSMBuilding | |
yarn --prod=false | |
- name: Lint | |
run: yarn run eslint . | |
- name: Test | |
run: CI=true NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules" npm test | |
- name: Coveralls | |
uses: coverallsapp/github-action@v2 |