Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bmclib version 2 #280

Closed
wants to merge 13 commits into from
Closed
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
9 changes: 4 additions & 5 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
queue_rules:
queue_rule:
- name: default
conditions:
# Conditions to get out of the queue (= merged)
Expand All @@ -8,11 +8,11 @@ queue_rules:
pull_request_rules:
- name: Automatic merge on approval
conditions:
- base=master
- base=v2
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- check-success=lint
- check-success=test
- check-success='lint'
- check-success='test'
- label!=do-not-merge
- label=ready-to-merge
actions:
Expand All @@ -21,4 +21,3 @@ pull_request_rules:
name: default
commit_message_template: |
{{ title }} (#{{ number }})

8 changes: 3 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '1.17'
go-version: '1.18'
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: -v --config .golangci.yml --timeout=5m
version: latest
- name: goimports-check
run: go get golang.org/x/tools/cmd/goimports && make goimports-check
- name: make all-checks
run: make all-checks
test:
Expand All @@ -36,8 +34,8 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '1.17'
go-version: '1.18'
- name: make all-tests
run: make all-tests
- name: upload codecov
run: bash <(curl -s https://codecov.io/bash)
run: bash <(curl -s https://codecov.io/bash)
15 changes: 6 additions & 9 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
govet:
auto-fix: true
linters-settings:
# TODO: enable and fix struct alignments
#enable:
# - fieldalignment
enable:
- fieldalignment
check-shadowing: true
settings:
printf:
Expand Down Expand Up @@ -48,8 +48,6 @@
auto-fix: true
wsl:
auto-fix: true
govet:
auto-fix: true
stylecheck:
auto-fix: true

Expand All @@ -59,7 +57,7 @@ linters:
- gosimple
- govet
- gofmt
#- gocyclo
- gocyclo
- ineffassign
- stylecheck
- deadcode
Expand All @@ -77,9 +75,8 @@ linters:
- goimports
- golint
- misspell
# enable when we're ready
#- goerr113
#- noctx
- goerr113
- noctx
enable-all: false
disable-all: true

Expand Down
26 changes: 0 additions & 26 deletions CHANGELOG.md

This file was deleted.

201 changes: 0 additions & 201 deletions LICENSE

This file was deleted.

12 changes: 1 addition & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,7 @@ lint: ## Run linting
@echo be sure golangci-lint is installed: https://golangci-lint.run/usage/install/
golangci-lint run --config .golangci.yml

.PHONY: goimports
goimports: ## run goimports updating files in place
@echo be sure goimports is installed
goimports -w .

.PHONY: goimports-check
goimports-check: ## run goimports displaying diffs
@echo be sure goimports is installed
goimports -d . | (! grep .)

.PHONY: all-checks
all-checks: lint goimports ## run all formatters
all-checks: lint ## run all formatters
go mod tidy
go vet ./...
Loading