Skip to content

Commit

Permalink
ci(trunk): Add trunk to repo (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris3ware authored Sep 4, 2024
1 parent 45d6a76 commit 2d16b68
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 7 deletions.
9 changes: 9 additions & 0 deletions .trunk/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*out
*logs
*actions
*notifications
*tools
plugins
user_trunk.yaml
user.yaml
tmp
2 changes: 2 additions & 0 deletions .trunk/configs/.markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Prettier friendly markdownlint config (all formatting rules disabled)
extends: markdownlint/style/prettier
7 changes: 7 additions & 0 deletions .trunk/configs/.yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
rules:
quoted-strings:
required: only-when-needed
extra-allowed: ["{|}"]
key-duplicates: {}
octal-values:
forbid-implicit-octal: true
33 changes: 33 additions & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This file controls the behavior of Trunk: https://docs.trunk.io/cli
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
version: 0.1
cli:
version: 1.22.4
# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins)
plugins:
sources:
- id: trunk
ref: v1.6.2
uri: https://github.com/trunk-io/plugins
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
runtimes:
enabled:
- [email protected]
- [email protected]
# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
lint:
enabled:
- [email protected]
- [email protected]
- git-diff-check
- [email protected]
- [email protected]
- [email protected]
- [email protected]
actions:
enabled:
- commitlint
- trunk-announce
- trunk-check-pre-push
- trunk-fmt-pre-commit
- trunk-upgrade-available
8 changes: 1 addition & 7 deletions commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ module.exports = {
"scope-enum": [
1,
"always",
[
"commitlint",
".github",
"pr-check",
"release",
"trunk"
],
["commitlint", ".github", "pr-check", "release", "trunk"],
],
//"signed-off-by": [1, "always", "Signed-off-by:"],
"subject-case": [1, "always", "sentence-case"],
Expand Down

0 comments on commit 2d16b68

Please sign in to comment.