From b8f7f8ac250386494229cd950b9f2106cd3ad4f7 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 15 Nov 2022 19:01:26 -0800 Subject: feat(templates/rust): add configuration for drone CI --- templates/rust/.drone.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 templates/rust/.drone.yml (limited to 'templates') diff --git a/templates/rust/.drone.yml b/templates/rust/.drone.yml new file mode 100644 index 0000000..ac03e81 --- /dev/null +++ b/templates/rust/.drone.yml @@ -0,0 +1,33 @@ +--- +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 . -- cgit 1.4.1