feat: Add abstract TileSource #266
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: CI | |
on: | |
push: | |
branches: [develop, master] | |
pull_request: | |
jobs: | |
Typecheck: | |
runs-on: ubuntu-latest | |
env: | |
# not needed for typechecking | |
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: '1' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
cache: 'npm' | |
- run: npm ci --legacy-peer-deps | |
- run: npm run typecheck | |
Lint: | |
runs-on: ubuntu-latest | |
env: | |
# not needed for linting | |
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: '1' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
cache: 'npm' | |
- run: npm ci --legacy-peer-deps | |
- run: npm run lint | |
Schema: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
- run: npm install -g ajv-cli | |
- run: ajv validate -s app/schema.json -d "{docs/examples/viewconfs,test/{view-configs,view-configs-more}}/*.json" | |
Test: | |
needs: [Lint, Schema, Typecheck] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
cache: 'npm' | |
# required to run headless puppeteer on ubuntu-latest | |
- name: Setup xvf | |
env: | |
DISPLAY: '0' | |
run: | | |
sudo apt-get install -y xvfb | |
# start xvfb in the background | |
sudo /usr/bin/Xvfb $DISPLAY -screen 0 1280x1024x24 & | |
- run: npm ci --legacy-peer-deps | |
- run: npm test -- --static-logging # don't show progress bar in CI |