This commit is contained in:
Brandon Liu
2022-10-19 23:07:38 +08:00
parent 6ed943d156
commit b3c9ba2b49

View File

@@ -21,7 +21,7 @@ jobs:
- run: cd js && npm install && npm run build - run: cd js && npm install && npm run build
- run: echo "VITE_GIT_SHA=$(git rev-parse --short HEAD)" >> app/.env - run: echo "VITE_GIT_SHA=$(git rev-parse --short HEAD)" >> app/.env
- run: cd app && npm install && ./node_modules/.bin/tsc && ./node_modules/.bin/vite build --base=/PMTiles/ - run: cd app && npm install && ./node_modules/.bin/tsc && ./node_modules/.bin/vite build --base=/PMTiles/
- run: cd serverless/aws && python create_lambda_function.py && cp lambda_function.zip ../../app/dist - run: cd serverless/aws && npm install && npm run build && cp dist/lambda_function.zip ../../app/dist
- run: cd serverless/cloudflare && npm install && npm run build && cp dist/index.js ../../app/dist - run: cd serverless/cloudflare && npm install && npm run build && cp dist/index.js ../../app/dist
- name: build_app - name: build_app
uses: peaceiris/actions-gh-pages@v3 uses: peaceiris/actions-gh-pages@v3
@@ -43,5 +43,5 @@ jobs:
- run: cd js && npm install && npm test - run: cd js && npm install && npm test
- run: cd python && python -m unittest test/test_* - run: cd python && python -m unittest test/test_*
- run: cd cpp && make - run: cd cpp && make
- run: cd serverless/aws && python -m unittest test_*.py - run: cd serverless/aws && npm install && npm test
- run: cd serverless/cloudflare && npm install && npm test - run: cd serverless/cloudflare && npm install && npm test