Skip to content

Commit

Permalink
add e2e github action
Browse files Browse the repository at this point in the history
  • Loading branch information
robur-team committed Jun 25, 2024
1 parent 89b146d commit 5b789dd
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: End-to-end interoperability testing

on: [push, pull_request]

jobs:
tests:
name: Tests

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: apt install openvpn

- name: Install dependencies
run: opam install --deps-only -t .

- 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
ip tuntap add mode tun e22-test
cd tests/e2e && ./test-server.sh e2e-test
cd tests/e2e && ./test-client.sh e2e-test
./coverage.sh

0 comments on commit 5b789dd

Please sign in to comment.