-
Notifications
You must be signed in to change notification settings - Fork 4
62 lines (58 loc) · 1.15 KB
/
ci.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: ci
permissions:
contents: read
pull-requests: read
actions: read
defaults:
run:
shell: bash
on:
push:
branches:
- 'main'
- 'branch-v*.*'
paths-ignore:
- "docs/**"
- "**.md"
- "**.mdx"
- "**.png"
- "**.jpg"
- "!.github/workflows/ci.yml"
pull_request:
branches:
- 'main'
paths-ignore:
- "docs/**"
- "**.md"
- "**.mdx"
- "**.png"
- "**.jpg"
- "!.github/workflows/ci.yml"
jobs:
ci:
timeout-minutes: 15
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
persist-credentials: false
- name: Setup Go
timeout-minutes: 15
uses: actions/setup-go@v5
with:
go-version: "1.22.7"
cache-dependency-path: |
**/go.sum
- name: Setup Toolbox
timeout-minutes: 5
uses: actions/cache@v4
with:
key: toolbox-${{ runner.os }}
path: |
${{ github.workspace }}/.sbin
- name: Make
run: make ci
env:
LINT_DIRTY: "true"