zoxide/.github/workflows/cargo-test.yml

36 lines
855 B
YAML
Raw Normal View History

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-11-11 12:53:37 +00:00
nix_path: nixpkgs=channel:nixos-unstable
# - uses: cachix/cachix-action@v8
# with:
# name: zoxide
# authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix-shell --run "cargo test --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
args: --all-features --no-fail-fast