From 42a74c6ec5953024faab56bc4651c45c328d2f2d Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 6 Nov 2022 10:47:48 -0800 Subject: ci: switch from GitHub action to drone I'm running my own CI at ci.fcuny.net using drone for now. I've spare compute capacity at home, and it's way faster than the GHA runners. For now I'm losing the following: - dependabot: that's a GitHub only function, I'll need to figure out something - nix flake update: I'll need to figure out a way to update flakes on a regular basis, probably a custom script to take care of that --- src/x509-info/.drone.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/x509-info/.drone.yml (limited to 'src/x509-info/.drone.yml') diff --git a/src/x509-info/.drone.yml b/src/x509-info/.drone.yml new file mode 100644 index 0000000..0816988 --- /dev/null +++ b/src/x509-info/.drone.yml @@ -0,0 +1,35 @@ +kind: pipeline +type: docker +name: checks + +trigger: + event: + - push + - pull_request + - cron + +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 + - cron + +steps: + - name: Run tests and build + image: nixpkgs/nix-flakes:nixos-22.05 + commands: + - nix develop --command cargo test + - nix build . + - nix run . -- fcuny.net -- cgit v1.2.3