silly goober bot

ci: add testing via nix

+30
+30
.github/workflows/test.yml
··· 1 + name: Test 2 + 3 + on: 4 + workflow_dispatch: 5 + push: 6 + paths: 7 + - "src/**" 8 + - "*.nix" 9 + - "*.toml" 10 + 11 + jobs: 12 + check-flake: 13 + runs-on: ubuntu-latest 14 + 15 + steps: 16 + - name: Checkout 17 + uses: actions/checkout@v4 18 + 19 + - name: Install Lix 20 + run: | 21 + curl -sSf -L https://install.lix.systems/lix | sh -s -- install --no-confirm 22 + echo "trusted-users = root worker" | sudo tee -a /etc/nix/nix.conf 23 + echo "experimental-features = nix-command flakes" | sudo tee -a /etc/nix/nix.conf 24 + sudo systemctl restart nix-daemon 25 + 26 + - name: Nix Magic Cache 27 + uses: DeterminateSystems/magic-nix-cache-action@main 28 + 29 + - name: Check Flake 30 + run: nix build -L .