This repository has been archived on 2023-04-18. You can view files and clone it, but cannot push or open issues or pull requests.
notificationarr/.drone.yml

56 lines
857 B
YAML
Raw Normal View History

---
kind: pipeline
type: docker
name: test
steps:
- name: test
image: golang:1.18
commands:
- go test -race -coverprofile=coverage.txt -covermode=atomic ./...
trigger:
event:
- push
- pull_request
branch:
- master
---
kind: pipeline
type: docker
name: check-go-mod
steps:
- name: check go.mod
image: golang:1.18
commands:
- go mod tidy
- git diff --exit-code go.mod
trigger:
event:
- push
- pull_request
branch:
- master
---
kind: pipeline
type: docker
name: golangci-lint
steps:
- name: run golangci-lint
image: golang:1.18
commands:
chore(deps): update module github.com/golangci/golangci-lint to v1.47.0 (#6) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) | require | minor | `v1.46.2` -> `v1.47.0` | --- ### Release Notes <details> <summary>golangci/golangci-lint</summary> ### [`v1.47.0`](https://github.com/golangci/golangci-lint/blob/HEAD/CHANGELOG.md#v1470) [Compare Source](https://github.com/golangci/golangci-lint/compare/v1.46.2...v1.47.0) 1. new linters: - `asasalint`: https://github.com/alingse/asasalint - `nosnakecase`: https://github.com/sivchari/nosnakecase 2. updated linters: - `errname`: from 0.1.6 to 0.1.7 - `gci`: from 0.3.4 to 0.4.2 - `nonamedreturns`: from 1.0.1 to 1.0.4 - `gocyclo`: from 0.5.1 to 0.6.0 - `go-exhaustruct`: from 2.1.0 to 2.2.0 - `errcheck`: from 1.6.0 to 1.6.1 - `thelper`: from 0.6.2 to 0.6.3 - `paralleltest`: from 1.0.3 to 1.0.6 - `testpackage`: from 1.0.1 to 1.1.0 - `exhaustive`: from 0.7.11 to 0.8.1 - `go-ruleguard`: from 0.3.19 to 0.3.21 - `gosec`: from 2.11.0 to 2.12.0 - `tenv`: from 1.5.0 to 1.6.0 - `wrapcheck`: from 2.6.1 to 2.6.2 - `gocognit`: from 1.0.5 to 1.0.6 - `decorder`: from 0.2.1 to 0.2.2 - `honnef.co/go/tools`: from 0.3.1 to 0.3.2 - `golang.org/x/tools`: bump to HEAD - `gci`: fix issues and re-enable autofix - `gosec`: allow `global` config - `staticcheck`: fix generics 3. documentation: - add thanks page - add a clear explanation about the `staticcheck` integration. - `depguard`: add `ignore-file-rules` - `depguard`: adjust phrasing - `gocritic`: add `enable` and `disable` ruleguard settings - `gomnd`: fix typo - `gosec`: add configs for all existing rules - `govet`: add settings for `shadow` and `unusedresult` - `thelper`: add `fuzz` config and description - linters: add defaults </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xMTEuMiIsInVwZGF0ZWRJblZlciI6IjMyLjExMS4yIn0=--> Co-authored-by: Renovate <renovate@dwysokinski.me> Co-authored-by: Dawid Wysokiński <contact@dwysokinski.me> Reviewed-on: https://gitea.dwysokinski.me/Kichiyaki/notificationarr/pulls/6 Co-authored-by: renovate <renovate@noreply.localhost> Co-committed-by: renovate <renovate@noreply.localhost>
2022-07-19 04:20:12 +00:00
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.47.0
- golangci-lint run
trigger:
event:
- push
- pull_request
branch:
- master