diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..a052ecb --- /dev/null +++ b/.drone.yml @@ -0,0 +1,51 @@ +--- +kind: pipeline +type: docker +name: default + +steps: + - name: Lint + image: docker.io/golangci/golangci-lint:latest + environment: + GO111MODULE: "on" + CGO_ENABLED: "0" + GOMEMLIMIT: "1150MiB" + commands: + - golangci-lint run -v + + - name: Test + image: docker.io/golang:1.20-bullseye + network_mode: host + environment: + GO111MODULE: "on" + CGO_ENABLED: "1" + DOCKER_HOST: tcp://localhost:2375 + commands: + - go install gotest.tools/gotestsum@latest + - gotestsum -f pkgname-and-test-fails -- -race -shuffle=on ./... + +--- +kind: pipeline +type: docker +name: housekeeping + +trigger: + event: + - cron + cron: + - daily + +steps: + - name: Renovate + image: docker.io/renovate/renovate + commands: + - renovate "${DRONE_REPO}" + environment: + RENOVATE_TOKEN: + from_secret: gitea_token + GITHUB_COM_TOKEN: + from_secret: github_token + RENOVATE_PLATFORM: gitea + RENOVATE_AUTODISCOVER: "false" + RENOVATE_ENDPOINT: https://code.icb4dc0.de/api/v1 + LOG_LEVEL: info \ No newline at end of file diff --git a/.editorconfig b/.editorconfig index 373f974..4c441b8 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,7 +10,7 @@ insert_final_newline = false max_line_length = 120 trim_trailing_whitespace = true -[*.{go, go2}] +[*.go] indent_style = tab ij_smart_tabs = true ij_go_GROUP_CURRENT_PROJECT_IMPORTS = true @@ -21,7 +21,7 @@ ij_go_move_all_imports_in_one_declaration = true ij_go_move_all_stdlib_imports_in_one_group = true ij_go_remove_redundant_import_aliases = true -[{*.yaml, *.yml}] +[*.{yaml,yml}] indent_size = 2 tab_width = 2 insert_final_newline = true