Skip to content

Commit

Permalink
repo management, linting, editor integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
logikal committed Jan 16, 2025
1 parent feac3b7 commit c6508d1
Show file tree
Hide file tree
Showing 9 changed files with 106 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/actions/trunk-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Pull Request
on: [ pull_request ]
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions: read-all

jobs:
trunk_check:
name: Trunk Code Quality Runner
runs-on: ubuntu-latest
permissions:
checks: write # For trunk to post annotations
contents: read # For repo checkout

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Trunk Code Quality
uses: trunk-io/trunk-action@v1
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: github-actions
directories:
- /
schedule:
interval: daily
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
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
21 changes: 21 additions & 0 deletions .trunk/configs/.yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
rules:
comments:
ignore-shebangs: true
require-starting-space: true
document-end:
present: false
document-start:
present: false
key-duplicates: {}
new-line-at-end-of-file:
present: true
octal-values:
forbid-implicit-octal: true
quoted-strings:
required: only-when-needed
extra-allowed: [ ^http://, ^https://, ^ftp://, "{|}" ]
extra-required: [ QUOTED ]
trailing-spaces: enable
truthy:
allowed-values: [ 'true', 'false', 'True', 'False' ]
check-keys: true
27 changes: 27 additions & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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.9
# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins)
plugins:
sources:
- id: trunk
ref: v1.6.6
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]
- git-diff-check
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"trunk.io",
"streetsidesoftware.code-spell-checker"
]
}
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"yaml.schemas": {
"https://json.schemastore.org/github-action.json": "file:///Users/skilgore/Developer/repos/aerospike/shared-workflows/.github/actions/setup-gpg/action.yaml",
"https://json.schemastore.org/github-workflow.json": "file:///Users/skilgore/Developer/repos/aerospike/shared-workflows/.github/actions/trunk-ci.yaml"
},
"cSpell.words": [
"aerospike",
"debsign",
"rpmsign"
]
}

0 comments on commit c6508d1

Please sign in to comment.