aboutsummaryrefslogblamecommitdiff
path: root/templates/go/.drone.yml
blob: 13b402662960a9ce2ce1fc8013a5a004b933fb19 (plain) (tree)































                                                                                                             
---
kind: pipeline
type: docker
name: checks

trigger:
  event:
    - push
    - pull_request

steps:
  - name: Run checks
    image: nixpkgs/nix-flakes:nixos-22.11
    commands:
      - nix develop --command pre-commit run --verbose --hook-stage commit --all-files --show-diff-on-failure

---
kind: pipeline
type: docker
name: build

trigger:
  event:
    - push
    - pull_request

steps:
  - name: Run tests and build
    image: nixpkgs/nix-flakes:nixos-22.11
    commands:
      - nix develop --command go test -race ./...
      - nix build