-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (58 loc) · 1.87 KB
/
Copy pathci.yml
File metadata and controls
71 lines (58 loc) · 1.87 KB
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
63
64
65
66
67
68
69
70
71
name: CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Go
id: setup-go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: false
- name: Resolve Go cache paths
id: go-cache
run: |
echo "gocache=$(go env GOCACHE)" >> "$GITHUB_OUTPUT"
echo "gomodcache=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT"
echo "goversion=$(go env GOVERSION)" >> "$GITHUB_OUTPUT"
- name: Restore Go cache
uses: actions/cache@v5
with:
path: |
${{ steps.go-cache.outputs.gocache }}
${{ steps.go-cache.outputs.gomodcache }}
key: go-${{ runner.os }}-${{ runner.arch }}-${{ steps.go-cache.outputs.goversion }}-${{ hashFiles('go.sum') }}
restore-keys: |
go-${{ runner.os }}-${{ runner.arch }}-${{ steps.go-cache.outputs.goversion }}-
- name: Set up pnpm
uses: pnpm/action-setup@v6
with:
version: 11.1.1
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm
cache-dependency-path: ui/pnpm-lock.yaml
- name: Install golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.11.4
install-only: true
- name: Verify fast
run: make verify-fast
- name: Verify race
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: make verify-race