mirror of
https://github.com/Turfjs/turf.git
synced 2026-01-25 16:07:00 +00:00
* Added id-token permission to allow for migration to npm trusted publishing. Updating node versions to reflect support matrix. * Renamed turf.yml more descriptively to ci.yml
42 lines
886 B
YAML
42 lines
886 B
YAML
name: CI build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- support/6.x
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- support/6.x
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [18.x, 20.x, 22.x, 24.x]
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
|
|
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0
|
|
with:
|
|
run_install: false
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # 4.3.0
|
|
with:
|
|
cache: "pnpm"
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- run: pnpm install --frozen-lockfile
|
|
- run: git diff --exit-code
|
|
- run: pnpm test
|