43 lines (40 loc) · 1.03 KB
/
test.yml
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
name: test
on: [push, pull_request]
jobs:
rescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: npm run test
- run: bash test/bundle/size.sh
- run: |
pushd ..
git clone https://github.com/aantron/promise-example-bsb.git
cd promise-example-bsb
npm install
npm run test
popd
- run: |
pushd ..
git clone https://github.com/aantron/promise-example-binding.git
cd promise-example-binding
npm install
npm run test
popd
esy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npx esy install -P ./promise.opam
- run: npx esy -P ./promise.opam dune build test/test_main.exe
- run: npx esy -P ./promise.opam dune exec test/test_main.exe
opam:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 4.12.x
- run: dune exec test/test_main.exe
- run: opam lint