-
Notifications
You must be signed in to change notification settings - Fork 57
49 lines (47 loc) · 1.17 KB
/
Copy pathcli.yml
File metadata and controls
49 lines (47 loc) · 1.17 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
name: CLI
on:
pull_request:
push:
branches:
- master
jobs:
build:
name: CLI
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/rescript-relay-cli
steps:
- uses: actions/checkout@v4
with:
submodules: "true"
- uses: actions/setup-node@v4
with:
node-version: 23
env:
CI: true
- name: Set up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: "4.14"
dune-cache: true
cache-prefix: "v1"
- name: Install PPX dependencies
working-directory: packages/rescript-relay/rescript-relay-ppx
run: opam install . --deps-only
- name: Build PPX
working-directory: packages/rescript-relay/rescript-relay-ppx
run: opam exec -- dune build bin/RescriptRelayPpxApp.exe
- name: Install
run: |
yarn --frozen-lockfile
- name: Build
run: |
yarn build
- name: Build local Relay compiler
working-directory: packages/rescript-relay
run: |
./build-compiler-dev.sh
- name: Test
run: |
yarn test