2020-10-01 18:50:32 +00:00
|
|
|
name: cargo-test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
2020-11-11 12:53:37 +00:00
|
|
|
test-unix:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest]
|
2020-10-01 18:50:32 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-11-11 12:53:37 +00:00
|
|
|
- uses: cachix/install-nix-action@v12
|
2020-10-01 18:50:32 +00:00
|
|
|
with:
|
2020-12-09 22:07:40 +00:00
|
|
|
nix_path: nixpkgs=channel:nixos-stable
|
2020-11-11 12:53:37 +00:00
|
|
|
# - uses: cachix/cachix-action@v8
|
|
|
|
# with:
|
|
|
|
# name: zoxide
|
|
|
|
# authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
2020-12-09 22:07:40 +00:00
|
|
|
- run: nix-shell --pure --run "cargo test --all-features --all-targets --color=always --no-fail-fast"
|
2020-10-26 19:55:02 +00:00
|
|
|
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
|
2020-12-09 22:07:40 +00:00
|
|
|
args: --all-features --all-targets --color=always --no-fail-fast
|