Skip to content

fix(maplibre): align map props with MapOptions #1174

fix(maplibre): align map props with MapOptions

fix(maplibre): align map props with MapOptions #1174

Workflow file for this run

name: test
# On every pull request, but only on push to master
on:
push:
branches:
- master
pull_request:
permissions:
contents: read
jobs:
test-node-matrix:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
maplibre: ['^4.0.0', '^5.0.0', '^6.0.0']
permissions:
checks: write
contents: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Node.js
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version-file: '.nvmrc'
- name: Enable Corepack
run: corepack enable yarn
- name: Install dependencies
run: yarn install --immutable
- name: Install MapLibre GL JS ${{ matrix.maplibre }}
run: yarn workspace @vis.gl/react-maplibre add --dev "maplibre-gl@${{ matrix.maplibre }}"
- name: Install Playwright browser
run: yarn playwright:install
- name: Build packages
run: yarn build
- name: Run tests
env:
VITE_MAPBOX_TOKEN: ${{ secrets.MAPBOX_ACCESS_TOKEN_CI }}
run: |
yarn lint
yarn test-node
yarn cover
- name: Coveralls
if: matrix.maplibre == '^5.0.0'
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fail-on-error: false
test-node:
runs-on: ubuntu-22.04
needs: test-node-matrix
if: ${{ always() }}
steps:
- name: Check test matrix
run: test "${{ needs.test-node-matrix.result }}" = "success"