Skip to content

Commit

Permalink
more ci stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
davidterpay authored and Eric-Warehime committed Jan 17, 2024
1 parent 86afeb9 commit ab12eab
Show file tree
Hide file tree
Showing 5 changed files with 143 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
run:
tests: true
timeout: 10m
sort-results: true
allow-parallel-runners: true
concurrency: 4
skip-dirs:
- tests/e2e

linters:
disable-all: true
enable:
- dogsled
- exportloopref
- goconst
- gocritic
- gofumpt
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- nolintlint
- staticcheck
- revive
- stylecheck
- typecheck
- unconvert
- unused
# - errcheck

issues:
exclude-rules:
- text: "Use of weak random number generator"
linters:
- gosec
# - text: "ST1003:"
# linters:
# - stylecheck
# - text: "ST1016:"
# linters:
# - stylecheck
# - text: "leading space"
# linters:
# - nolintlint

max-issues-per-linter: 10000
max-same-issues: 10000

linters-settings:
dogsled:
max-blank-identifiers: 3
maligned:
# print struct with more effective memory layout or not, false by default
suggest-new: true
nolintlint:
allow-unused: false
allow-leading-space: true
require-explanation: false
require-specific: false
26 changes: 26 additions & 0 deletions .gorelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
project_name: slinky

release:
github:
owner: skip-mev
name: slinky

builds:
- skip: true

archives:
- format: tar.gz
wrap_in_directory: true
format_overrides:
- goos: windows
format: zip
name_template: "{{ .Binary }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
files:
- README.md

snapshot:
name_template: SNAPSHOT-{{ .Commit }}

changelog:
skip: false
12 changes: 12 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"default": true,
"MD004": { "style": "asterisk" },
"MD007": { "indent": 4 },
"MD024": { "siblings_only": true },
"MD025": false,
"MD033": false,
"MD034": false,
"MD014": false,
"no-hard-tabs": false,
"whitespace": false
}
18 changes: 18 additions & 0 deletions .markdownlintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"default": true,
"MD004": {
"style": "asterisk"
},
"MD007": {
"indent": 4
},
"MD013": false,
"MD024": {
"siblings_only": true
},
"MD025": false,
"MD033": false,
"MD034": false,
"no-hard-tabs": false,
"whitespace": false
}
26 changes: 26 additions & 0 deletions .mergify
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
queue_rules:
- name: default
conditions:
- "#approved-reviews-by>1"

pull_request_rules:
- name: automerge to main with label automerge and branch protection passing
conditions:
- "#approved-reviews-by>1"
- base=main
- label=A:automerge
actions:
queue:
name: default
method: squash
commit_message_template: |
{{ title }} (#{{ number }})
{{ body }}
- name: backport patches to v1.x.x branch
conditions:
- base=main
- label=backport/v1.x.x
actions:
backport:
branches:
- release/v1.x.x

0 comments on commit ab12eab

Please sign in to comment.