Skip to content

Update building.js #757

Update building.js

Update building.js #757

Workflow file for this run

name: CI
on: push
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