name: "Test" on: pull_request: push: branches: - main schedule: - cron: '51 2 * * *' jobs: tests: strategy: matrix: os: [ ubuntu-latest, macos-latest ] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - uses: cachix/install-nix-action@v14 - name: build run: NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz nix-build --expr '(import { }).callPackage ./. { }'