update #36
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: "Test Branches" | |
on: | |
push: | |
branches: | |
- '**' | |
- '!main' | |
workflow_dispatch: | |
jobs: | |
release: | |
name: "Test Branch ${{ github.ref }}" | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: "Checkout source code" | |
uses: "actions/checkout@v2" | |
with: | |
ref: ${{ github.ref }} | |
- | |
name: Set up node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- | |
name: Update packages | |
run: sudo apt update -qq | |
- | |
name: Install apt packages | |
run: sudo apt-get install -y libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++ xvfb libgles2-mesa-dev libgbm-dev libxxf86vm-dev | |
- | |
name: Install node dependencies | |
run: npm install | |
- | |
name: Download test data | |
run: wget -O test_data.zip https://github.com/acalcutt/tileserver-gl/releases/download/test_data/test_data.zip | |
- | |
name: Unzip test data | |
run: unzip -q test_data.zip -d test_data | |
- | |
name: Run tests | |
run: xvfb-run --server-args="-screen 0 1024x768x24" npm test |