-
-
Notifications
You must be signed in to change notification settings - Fork 133
38 lines (30 loc) · 892 Bytes
/
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
name: test
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
ocaml-compiler:
- ocaml.5.2.0
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Node
uses: actions/setup-node@v3
- name: Set up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- run: brew install postgresql@15 && brew link --overwrite postgresql@15
if: runner.os == 'macOS'
- name: Install dependencies
run: opam install . --deps-only --with-test
- name: Test
run: |
opam exec -- dune exec -- example/1-hello/hello.exe &
sleep 1;
for (( i=0; i<1024; ++i )) ; do curl -s http://localhost:8080/ ; done