diff options
| author | Franck Cuny <franck@fcuny.net> | 2023-02-21 12:55:28 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2023-02-21 12:59:13 -0800 |
| commit | d6971f6d7a03142ea6e391d7c37532b3aa4792e7 (patch) | |
| tree | f60d9d3fcdd37075bc81b9a1116afa7ce74d286d /templates/go/.drone.yml | |
| parent | feat(home/fish): move fish's code to external files (diff) | |
| download | infra-d6971f6d7a03142ea6e391d7c37532b3aa4792e7.tar.gz | |
feat(templates/go): add flake template for go projects
Diffstat (limited to 'templates/go/.drone.yml')
| -rw-r--r-- | templates/go/.drone.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/templates/go/.drone.yml b/templates/go/.drone.yml new file mode 100644 index 0000000..13b4026 --- /dev/null +++ b/templates/go/.drone.yml @@ -0,0 +1,32 @@ +--- +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 |
