Skip to content

Support connections to Unix domain sockets #22

Support connections to Unix domain sockets

Support connections to Unix domain sockets #22

Workflow file for this run

name: Test in Nix
on:
- push
- pull_request
jobs:
run:
name: Build and test
strategy:
fail-fast: false
matrix:
ocaml-version:
- 4_12
#- 4_11
#- 4_13
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Nix
uses: cachix/install-nix-action@v15
with:
nix_path: nixpkgs=channel:nixos-21.11
extra_nix_config: |
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://cache.nixos.org/
max-jobs = auto
cores = 0
- name: Build
run: |
nix-shell --argstr ocamlVersion ${{ matrix.ocaml-version }} --run 'dune build'
- name: Install docker compose
run: nix-env -f '<nixpkgs>' -iA docker-compose
- name: Start containers
run: docker-compose up -d
- run: nix-shell --argstr ocamlVersion ${{ matrix.ocaml-version }} --run 'dune runtest'
- name: Stop containers
run: docker-compose down