-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (29 loc) · 936 Bytes
/
trunk-check.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Pull Request
run-name: Pull Request for ${{ github.ref_name }} by ${{ github.actor }}
on:
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
# Allows the automerge bot PR job to comment on dependabot PRs
permissions: read-all
jobs:
trunk_check_runner:
name: Trunk Check runner [linux]
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Trunk install
uses: trunk-io/trunk-action/setup@v1
- name: Add install tools to path
shell: bash
run: echo "${PWD}/.trunk/tools" >> $GITHUB_PATH
- name: trunk tools install
shell: bash
# NOTE: Install all tools needed for CI workflows here
run: ${TRUNK_PATH} tools install --ci bazel
env:
TRUNK_LAUNCHER_QUIET: 1
- name: Trunk Check
uses: trunk-io/trunk-action@main