forked from change-metrics/monocle
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1.15 KB
/
nix.yaml
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
jobs:
tests:
name: tests
runs-on: ubuntu-latest
steps:
- uses: "actions/[email protected]"
with:
submodules: 'true'
- uses: "cachix/install-nix-action@v15"
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: "cachix/cachix-action@v10"
with:
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
name: change-metrics
- name: Configure sysctl limits
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- name: Runs Elasticsearch
uses: "elastic/elastic-github-actions/elasticsearch@master"
with:
stack-version: '7.8.0'
- name: Display indexes
run: curl -s -I -X GET http://localhost:9200/_cat/indices
- name: Build the env
run: nix-build --no-out-link --attr monocle-light.env
- name: Run Test
run: "cd haskell; nix-shell --pure --attr ci-shell ../nix/default.nix --command 'env ELASTIC_URL=http://localhost:9200 monocle-ci-run'"
name: Nix
on:
pull_request: {}
push: {}
release: {}