diff --git a/.forgejo/workflows/test.yaml b/.forgejo/workflows/test.yaml new file mode 100644 index 0000000..efb22ed --- /dev/null +++ b/.forgejo/workflows/test.yaml @@ -0,0 +1,18 @@ +on: [push, pull_request] +name: Test +jobs: + test: + runs-on: node20 + env: + ZIG_LOCAL_CACHE_DIR: /zig/local-cache + ZIG_GLOBAL_CACHE_DIR: /zig/global-cache + steps: + - name: Checkout + uses: actions/checkout + - name: Setup Nix + uses: cachix/install-nix-action + with: + nix_path: nixpkgs=channel:nixos-unstable + - name: Test + run: nix develop .#default -c zig build test + diff --git a/flake.lock b/flake.lock index da65353..ac13b9a 100644 --- a/flake.lock +++ b/flake.lock @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1725432240, - "narHash": "sha256-+yj+xgsfZaErbfYM3T+QvEE2hU7UuE+Jf0fJCJ8uPS0=", + "lastModified": 1725634671, + "narHash": "sha256-v3rIhsJBOMLR8e/RNWxr828tB+WywYIoajrZKFM+0Gg=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "ad416d066ca1222956472ab7d0555a6946746a80", + "rev": "574d1eac1c200690e27b8eb4e24887f8df7ac27c", "type": "github" }, "original": {