2022-08-17 04:15:43 +02:00
|
|
|
name: Tests
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- label: Linux
|
|
|
|
image: ubuntu-latest
|
|
|
|
|
2023-01-28 07:52:28 +01:00
|
|
|
name: ${{ matrix.os.label }}
|
2022-08-17 04:15:43 +02:00
|
|
|
runs-on: ${{ matrix.os.image }}
|
|
|
|
steps:
|
2023-01-28 07:44:41 +01:00
|
|
|
- uses: actions/checkout@v3.3.0
|
2022-09-19 01:47:09 +02:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2022-08-17 04:15:43 +02:00
|
|
|
|
2023-01-28 07:44:41 +01:00
|
|
|
- name: Install Nix
|
2023-02-07 01:48:29 +01:00
|
|
|
uses: DeterminateSystems/nix-installer-action@e1f2e54ff90b012560f19481e250bb7d909f3acd
|
2022-08-17 04:15:43 +02:00
|
|
|
|
2023-01-28 07:44:41 +01:00
|
|
|
- name: Enable Binary Cache
|
|
|
|
uses: cachix/cachix-action@v12
|
2022-08-17 04:15:43 +02:00
|
|
|
with:
|
|
|
|
name: colmena
|
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
|
|
|
|
|
|
- name: Set up pinned nixpkgs
|
|
|
|
run: echo "NIX_PATH=nixpkgs=$(nix-instantiate --eval flake-compat.nix -A defaultNix.inputs.nixpkgs.outPath | sed 's|\"||g')" >> $GITHUB_ENV
|
|
|
|
|
|
|
|
- run: nix-shell --run "cargo test"
|