mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2024-11-19 19:45:09 +00:00
36 lines
933 B
YAML
36 lines
933 B
YAML
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
|