Skip to content

Commit

Permalink
ci and scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mscno committed Dec 20, 2024
1 parent ef0b706 commit 45f5e47
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 5 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build-and-test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16, 18, 20]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Run Build
run: npm run build

- name: Run Tests
run: npm test
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# GeoJSON Path Finder
# GeoJSON Path Finder (Geoman.io fork)

NOTE: This fork includes updates to use Turf 7.x and the latest GeoJSON package. It also includes updates to the TypeScript definitions.


[![Build status](https://travis-ci.org/perliedman/geojson-path-finder.svg?branch=master)](https://travis-ci.org/perliedman/geojson-path-finder)
[![Build Status](https://github.com/geoman-io/geojson-path-finder/actions/workflows/ci.yml/badge.svg)](https://github.com/geoman-io/geojson-path-finder/actions/workflows/ci.yml)

Find shortest paths through a network of GeoJSON.

Expand Down Expand Up @@ -59,7 +58,7 @@ As a convenience, the function `pathToGeoJSON` is also exported, it converts the
a GeoJSON linestring:

```javascript
import PathFinder, { pathToGeoJSON } from "geojson-path-finder";
import PathFinder, { pathToGeoJSON } from "@geoman-io/geojson-path-finder";
const pathFinder = new PathFinder(geojson);
const pathLineString = pathToGeoJSON(pathFinder.findPath(start, finish));
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"build": "npm run build:esm && npm run build:cjs",
"build:esm": "tsc -p tsconfig.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"prepare": "npm test && npm run build",
"DISABLE:prepare": "npm test && npm run build",
"pretest": "npm run build:esm",
"test": "vitest run"
},
Expand Down

0 comments on commit 45f5e47

Please sign in to comment.