Skip to content

Commit

Permalink
Merge branch 'main' into logging_refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
wolmi authored Oct 5, 2023
2 parents 791305c + 6fdc5f0 commit 78445f4
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: size-label
on: pull_request
jobs:
size-label:
runs-on: ubuntu-latest
steps:
- name: size-label
uses: "codelytv/pr-size-labeler@v1"
with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
32 changes: 32 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Lint

on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- "main"
paths:
- '**.go'
- 'go.*'
- '.github/workflows/lint.yml'
- '.golangci.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
golangci-lint:
if: github.event.pull_request.draft == false
name: runner / golangci-lint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v2
with:
tool_name: golangci-lint
19 changes: 19 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
linters:
enable:
- errcheck
- gochecknoinits
# We don't use goconst because it gives false positives in the tests.
# - goconst
- gofmt
- revive
- gosec
- gosimple
- ineffassign
- staticcheck
- typecheck
- unconvert
- unused
- vet
- vetshadow
run:
timeout: 10m
10 changes: 10 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"draftPR": true,
"extends": [
"config:base",
":semanticCommits"
],
"labels": ["dependencies"],
"ignorePaths": ["**/charts/**"]
}

0 comments on commit 78445f4

Please sign in to comment.