-
Notifications
You must be signed in to change notification settings - Fork 8
54 lines (43 loc) · 1.08 KB
/
Copy pathtest.yml
File metadata and controls
54 lines (43 loc) · 1.08 KB
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
51
52
53
54
name: ppx_spice test
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use OCaml 4.14.2
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 4.14.2
- name: Install OCaml deps
run: opam install . --deps-only --with-test
working-directory: src
- name: Build PPX
run: opam exec -- dune build
working-directory: src
- name: Use pnpm
uses: pnpm/action-setup@v4
with:
version: 10.33.0
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
cache-dependency-path: test/pnpm-lock.yaml
- name: Install JS deps
run: pnpm install --frozen-lockfile
working-directory: test
- name: Build ReScript test fixtures
run: pnpm run res:build
working-directory: test
- name: Run tests
run: pnpm test
working-directory: test