Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 🧪 Code Coverage & Testing

on:
push:
branches:
- 'main'
paths-ignore:
- 'README.md'
- 'LICENSE'
- '.gitignore'
- '.goreleaser.yaml'
- 'example/**'
- 'docs/**'
pull_request:
branches:
- 'main'
paths-ignore:
- 'README.md'
- 'LICENSE'
- '.gitignore'
- '.goreleaser.yaml'
- 'example/**'
- 'docs/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
tests:
name: 🛡 Testing Suite
uses: launchrctl/launchr/.github/workflows/test-suite.yaml@main
84 changes: 0 additions & 84 deletions .github/workflows/commit.yml

This file was deleted.

93 changes: 47 additions & 46 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,55 +1,56 @@
# More info on config here: https://github.com/golangci/golangci-lint#config-file
run:
deadline: 10s
issues-exit-code: 1
tests: true

# yaml-language-server: $schema=https://golangci-lint.run/jsonschema/golangci.jsonschema.json
version: "2"
output:
formats:
- format: colored-line-number
print-issued-lines: true
print-linter-name: true

linters-settings:
govet:
shadow: true
golint:
min-confidence: 0
dupl:
threshold: 100
goconst:
min-len: 2
min-occurrences: 2

text:
path: stdout
print-linter-name: true
print-issued-lines: true
linters:
disable-all: true
default: none
enable:
- revive
- govet
- errcheck
- unused
- ineffassign
- typecheck
- dupl
- errcheck
- goconst
- gosec
- goimports
- gosimple
- govet
- ineffassign
- revive
- staticcheck
- unused

issues:
exclude-use-default: false
exclude-dirs:
- bin
- vendor
- var
- tmp
exclude-files:
- \.pb\.go$
- \.pb\.goclay\.go$
exclude:
# # _ instead of err checks
# - G104
# errcheck: Almost all programs ignore errors on these functions and in most cases it's ok
- Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv|.*Rollback). is not checked
settings:
dupl:
threshold: 100
goconst:
min-len: 2
min-occurrences: 2
exclusions:
generated: lax
rules:
- path: (.+)\.go$
text: Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv|.*Rollback). is not checked
paths:
- \.pb\.go$
- \.pb\.goclay\.go$
- bin
- vendor
- var
- tmp
- third_party$
- builtin$
- examples$
formatters:
enable:
- goimports
exclusions:
generated: lax
paths:
- \.pb\.go$
- \.pb\.goclay\.go$
- bin
- vendor
- var
- tmp
- third_party$
- builtin$
- examples$
Loading