File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 2
2
* logs
3
3
* actions
4
4
* notifications
5
- * tools
5
+ tools
6
+ tools.log
6
7
plugins
7
8
user_trunk.yaml
8
9
user.yaml
You can’t perform that action at this time.
0 commit comments