name: cargo-test on: push: pull_request: jobs: test-unix: runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, macos-latest] steps: - uses: actions/checkout@v2 - uses: cachix/install-nix-action@v12 with: nix_path: nixpkgs=channel:nixos-stable # - uses: cachix/cachix-action@v8 # with: # name: zoxide # authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - run: nix-shell --pure --run "cargo test --all-features --all-targets --color=always --no-fail-fast" test-windows: runs-on: windows-latest steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true - uses: actions-rs/cargo@v1 with: command: test args: --all-features --all-targets --color=always --no-fail-fast