aboutsummaryrefslogblamecommitdiff
path: root/.drone.yml
blob: b2a6ca42ddac026d63e4699488b7c936a7a5d763 (plain) (tree)































                                                         
kind: pipeline
type: docker
name: checks

trigger:
  event:
    - push
    - pull_request

steps:
  - name: Run checks
    image: nixpkgs/nix-flakes:nixos-22.05
    commands:
      - nix develop --command cargo fmt --check
      - nix develop --command cargo deny check
      - nix develop --command cargo clippy -- -D warnings
---
kind: pipeline
type: docker
name: build

trigger:
  event:
    - push
    - pull_request

steps:
  - name: Run tests and build
    image: nixpkgs/nix-flakes:nixos-22.05
    commands:
      - nix develop --command cargo test
      - nix build .