Skip to content

Allow optional ellipsoid definition to be passed to distance allowing for calculation types other than great circle #492

Allow optional ellipsoid definition to be passed to distance allowing for calculation types other than great circle

Allow optional ellipsoid definition to be passed to distance allowing for calculation types other than great circle #492

Workflow file for this run

name: Turf.js CI
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
# figure out the yarn cache directory
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
# cache the yarn data to speed up builds
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn --frozen-lockfile
- run: git diff --exit-code
- run: yarn test