v2.31.0-dev16 8d0a092

ci.yml RawHistoryFolder

1name: CI
2
3on:
4  push:
5    branches: [main]
6  pull_request:
7
8jobs:
9  changes:
10    name: Detect changes
11    runs-on: ubuntu-latest
12    permissions:
13      pull-requests: read
14    outputs:
15      go: ${{ steps.filter.outputs.go }}
16    steps:
17      - uses: actions/checkout@v6
18      - uses: dorny/paths-filter@v3
19        id: filter
20        with:
21          filters: |
22            go:
23              - '**.go'
24              - 'go.mod'
25              - 'go.sum'
26              - '.golangci.yml'
27              - 'Makefile'
28              - '.github/workflows/**'
29
30  lint:
31    name: Lint
32    needs: changes
33    if: needs.changes.outputs.go == 'true'
34    runs-on: ubuntu-latest
35    steps:
36      - uses: actions/checkout@v6
37
38      - uses: actions/setup-go@v5
39        with:
40          go-version: stable
41
42      - name: Cache Go modules
43        uses: actions/cache@v5
44        with:
45          path: ~/go/pkg/mod
46          key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
47          restore-keys: |
48            ${{ runner.os }}-go-mod-
49
50      - name: Run golangci-lint
51        uses: golangci/golangci-lint-action@v9
52        with:
53          version: v2.10.1
54
55  test:
56    name: Test
57    needs: changes
58    if: needs.changes.outputs.go == 'true'
59    runs-on: ubuntu-latest
60    steps:
61      - uses: actions/checkout@v6
62
63      - uses: actions/setup-go@v5
64        with:
65          go-version: stable
66
67      - name: Cache Go modules
68        uses: actions/cache@v5
69        with:
70          path: ~/go/pkg/mod
71          key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
72          restore-keys: |
73            ${{ runner.os }}-go-mod-
74
75      - name: Cache Go build cache
76        uses: actions/cache@v5
77        with:
78          path: ~/.cache/go-build
79          key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
80          restore-keys: |
81            ${{ runner.os }}-go-build-
82
83      - name: Run tests
84        run: go test -race -v ./...

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close