Merge pull request #1132 from morucci/r-1.11.2 #959
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
jobs: | |
api-tests: | |
name: api-tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: "actions/[email protected]" | |
- uses: "cachix/install-nix-action@v20" | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- uses: "cachix/cachix-action@v12" | |
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.17.16" | |
- name: Display indexes | |
run: curl -s -I -X GET http://localhost:9200/_cat/indices | |
- name: Build the env | |
run: "nix build --no-link .#env" | |
- name: Run Test | |
run: "nix develop .#ci --command env MONOCLE_ELASTIC_URL=http://localhost:9200 monocle-ci-run" | |
- name: Build the develop shell | |
run: nix develop . --command true | |
name: Nix | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- master |