Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chris48s/geojson-lint-action

🌍 Run @mapbox/geojsonhint on geojson files in pull requests
https://github.com/chris48s/geojson-lint-action

geojson github-actions spatial-data

Last synced: 24 days ago
JSON representation

🌍 Run @mapbox/geojsonhint on geojson files in pull requests

Awesome Lists containing this project

README

        

# geojson-lint-action

[![Run tests](https://github.com/chris48s/geojson-lint-action/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/chris48s/geojson-lint-action/actions/workflows/test.yml)

Run [@mapbox/geojsonhint](https://www.npmjs.com/package/@mapbox/geojsonhint) on geojson files in pull requests

```yaml
name: Geojson Lint
on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Lint
uses: chris48s/[email protected]
with:
github-token: '${{ secrets.GITHUB_TOKEN }}' # required

# geojsonhint config: https://www.npmjs.com/package/@mapbox/geojsonhint#api
no-duplicate-members: 'false' # optional, default=true
precision-warning: 'true' # optional, default=false
```