-
Notifications
You must be signed in to change notification settings - Fork 9
44 lines (34 loc) · 1.13 KB
/
e2e.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
44
name: End-to-end interoperability testing
on: [push, pull_request]
jobs:
tests:
name: End-to-end test
strategy:
fail-fast: false
matrix:
ocaml-version: ["4.14.2"]
operating-system: [ubuntu-latest]
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use OCaml ${{ matrix.ocaml-version }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-version }}
- name: Install openvpn
run: sudo apt install -y openvpn
- name: Install dependencies
run: |
opam install --deps-only -t .
opam install bisect_ppx
- name: Build
run: opam exec -- dune build --instrument-with bisect_ppx
- name: Testing
run: |
opam exec -- dune runtest --instrument-with bisect_ppx
opam exec -- dune exec bench/bench_engine.exe
sudo ip tuntap add mode tun e2e-test
cd tests/e2e && sudo ./test-server.sh e2e-test
cd tests/e2e && sudo ./test-client.sh e2e-test
opam exec -- ./coverage.sh