zoxide/.github/workflows/cargo-test.yml
2020-12-10 12:00:10 +05:30

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