zoxide/.github/workflows/ci.yml

25 lines
629 B
YAML
Raw Normal View History

2021-03-29 15:44:30 +00:00
name: ci
on:
push:
2021-05-01 21:56:12 +00:00
branches: [main]
2021-03-29 15:44:30 +00:00
pull_request:
jobs:
ci:
2021-05-01 21:56:12 +00:00
name: ci-${{ matrix.os }}
2021-03-29 15:44:30 +00:00
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
2021-03-29 15:44:30 +00:00
steps:
- uses: actions/checkout@v2
- uses: actions-rs/install@v0.1
if: ${{ matrix.os == 'windows-latest' }}
with:
crate: cargo-audit
version: latest
- uses: cachix/install-nix-action@v12
if: ${{ matrix.os != 'windows-latest' }}
with:
2021-05-07 07:34:44 +00:00
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/20.09.tar.gz
- run: make test