Skip to content

Align formats with Patchwork #5

Align formats with Patchwork

Align formats with Patchwork #5

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache: true
- name: Run tests
run: cargo test --workspace
- name: Run doc tests
run: cargo test --doc --workspace
test-nix:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v21
- name: Setup Nix cache
uses: DeterminateSystems/magic-nix-cache-action@v13
- name: Setup Cachix
uses: cachix/cachix-action@v15
if: ${{ !github.event.pull_request.head.repo.fork }}
with:
name: inkandswitch
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Test via Nix
run: nix develop --command rust:test