Skip to content

Commit ef0b163

Browse files
committed
Changes committed:
new file: .github/workflows/trunk-check.yaml modified: .trunk/.gitignore
1 parent d9883bd commit ef0b163

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

.github/workflows/trunk-check.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: Trunk Code Quality
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
concurrency:
10+
group: ${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: true
12+
13+
permissions: read-all
14+
15+
jobs:
16+
test:
17+
runs-on: ubuntu-latest
18+
# Provide minimal permissions instead of write-all
19+
permissions:
20+
pull-requests: write
21+
checks: write
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
# Optional caching for trunk to speed up subsequent runs
27+
- name: Cache trunk
28+
uses: actions/cache@v4
29+
with:
30+
path: |
31+
~/.cache/trunk
32+
key: ${{ runner.os }}-trunk-${{ hashFiles('.trunk/trunk.yaml') }}
33+
34+
- name: Trunk Code Quality
35+
uses: trunk-io/trunk-action@v1
36+
with:
37+
post-annotations: true

.trunk/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
*logs
33
*actions
44
*notifications
5-
*tools
5+
tools
6+
tools.log
67
plugins
78
user_trunk.yaml
89
user.yaml

0 commit comments

Comments
 (0)