1
0
Fork 0

add instructions on how to push test results for CI

This commit is contained in:
ibizaman 2023-12-04 00:23:45 -08:00 committed by Pierre Penninckx
parent a63b0a6e2e
commit ae98a1d6e5

View file

@ -658,6 +658,8 @@ Run all tests:
$ nix build .#checks.${system}.all $ nix build .#checks.${system}.all
# or # or
$ nix flake check $ nix flake check
# or
$ nix run github:Mic92/nix-fast-build -- --skip-cached --flake ".#checks.$(nix eval --raw --impure --expr builtins.currentSystem)"
``` ```
Run one group of tests: Run one group of tests:
@ -670,8 +672,13 @@ $ nix build .#checks.${system}.vm_postgresql_peerAuth
### Speed up CI ### Speed up CI
Github actions do not have hardware acceleration and tests could timeout when running there. The Github actions do not have hardware acceleration and tests could timeout when running there. The
easiest way to speed up CI is to push the test results to cachix. Instructions are given easiest way to speed up CI is to push the test results to cachix.
[here](https://docs.cachix.org/pushing#flakes).
After running the `nix-fast-build` command from the previous section, run:
```bash
$ find . -type l -name "result-vm_*" | xargs readlink | nix run nixpkgs#cachix -- push selfhostblocks
```
### Deploy using colmena ### Deploy using colmena