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

36 lines
933 B
YAML
Raw Normal View History

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