Skip to content

Commit a8e6ffc

Browse files
committed
Run examples on push
1 parent 57af888 commit a8e6ffc

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,21 @@ jobs:
7272
with:
7373
name: benchmarks
7474
path: benchmarks/*.csv
75+
76+
examples:
77+
runs-on: ubuntu-latest
78+
steps:
79+
- uses: actions/checkout@v6
80+
81+
- uses: actions/setup-node@v6
82+
with:
83+
node-version: '22'
84+
85+
- name: Install modules
86+
run: npm install
87+
88+
- name: Build
89+
run: npm run build
90+
91+
- name: Run examples
92+
run: for e in examples/*.ts; do node "$e"; done

examples/timeline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getTimelinePrediction, stationsNear } from 'neaps'
1+
import { getTimelinePrediction } from 'neaps'
22

33
const timeline = getTimelinePrediction({
44
lat: 26.77,

0 commit comments

Comments
 (0)