feat(layer): add option to limit layer list by extent BM-883 (#3344) #291
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: smoke | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
smoke: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: linz/action-typescript@v3 | |
# Package all the files | |
- name: Bundle & Package all files | |
run: | | |
npx lerna run bundle --stream | |
npm pack --workspaces | |
env: | |
NODE_ENV: 'production' | |
- name: (NonProd) Configure AWS Credentials | |
uses: aws-actions/[email protected] | |
with: | |
aws-region: ap-southeast-2 | |
mask-aws-account-id: true | |
role-to-assume: ${{ secrets.AWS_ROLE_SCREENSHOT }} | |
- name: (Smoke) Run Smoke Tests | |
run: | | |
# Copy the static files for v1/health check | |
cp -r packages/lambda-tiler/static/ . | |
./packages/cli/bin/bmc.js serve --config s3://linz-basemaps/config/config-latest.json.gz & | |
# Wait for the server to start | |
timeout 30 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:5000/v1/version)" != "200" ]]; do sleep 0.5; done' || false | |
BASEMAPS_HOST=http://localhost:5000 node --test packages/smoke/build/*.test.js | |
env: | |
GIT_VERSION: $(git describe --tags --always --match 'v*') | |
GIT_HASH: $(git rev-parse HEAD) |