-
-
Notifications
You must be signed in to change notification settings - Fork 66
50 lines (46 loc) · 1.25 KB
/
test-performance.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Test Performance
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
node-version: [18, 20]
steps:
- uses: actions/checkout@v4
- name: Checkout test target
uses: actions/checkout@v4
with:
# Repository name with owner. For example, actions/checkout
# Default: ${{ github.repository }}
repository: "ianmackenzie/elm-geometry"
# Relative path under $GITHUB_WORKSPACE to place the repository
path: "ianmackenzie/elm-geometry"
- name: Setup for ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: npm ci
run: |
npm ci
- name: Compile
run: |
npm run compile
- name: Install Elm
run: |
npm install -g elm
- name: Elm make
run: |
cd ./ianmackenzie/elm-geometry
elm make ./src/Arc2d.elm
- name: Run performance test
run: |
npx ts-node ./test/performance.ts ./ianmackenzie/elm-geometry