Skip to content

Commit

Permalink
precommit, license, bk pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
matoszz committed Jan 11, 2025
1 parent 33bb656 commit 857fd9d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
12 changes: 10 additions & 2 deletions .buildkite/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,22 @@ steps:
key: "tests"
steps:
- label: ":golangci-lint: lint :lint-roller:"
if: build.branch !~ /^renovate\//
agents:
queue: $LARGE_RUNNER_QUEUE
size: $RUNNER_LARGE
location: "SAT"
cancel_on_build_failing: true
timeout_in_minutes: 20
key: "lint"
plugins:
- docker#v5.12.0:
image: "registry.hub.docker.com/golangci/golangci-lint:v1.60.3"
command: ["golangci-lint", "run", "-v", "--timeout", "10m", "--config", ".golangci.yaml", "--concurrency", "0"]
image: "ghcr.io/theopenlane/build-image:latest"
command: ["task", "go:lint:ci"]
always_pull: true
environment:
- "GOTOOLCHAIN=auto"
artifact_paths: ["coverage.out"]
- label: ":golang: go test"
key: "go_test"
cancel_on_build_failing: true
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ repos:
- id: trailing-whitespace
- id: detect-private-key
- repo: https://github.com/google/yamlfmt
rev: v0.14.0
rev: v0.15.0
hooks:
- id: yamlfmt
- repo: https://github.com/crate-ci/typos
rev: v1.27.3
rev: v1.29.4
hooks:
- id: typos
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2024 The Open Lane, Inc.
Copyright 2025 theopenlane, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 6 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ tasks:
cmds:
- golangci-lint run --config=.golangci.yaml --verbose --fast --fix

go:lint:ci:
desc: runs golangci-lint, the most annoying opinionated linter ever, for CI
## do not use --fast or --fix in CI
cmds:
- golangci-lint run --config=.golangci.yaml --verbose

go:fmt:
desc: format all go code
cmds:
Expand Down

0 comments on commit 857fd9d

Please sign in to comment.