Support connections to Unix domain sockets #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |