-
Notifications
You must be signed in to change notification settings - Fork 5
99 lines (92 loc) · 2.28 KB
/
ci.yml
File metadata and controls
99 lines (92 loc) · 2.28 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: CI
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
go-root:
name: Go (root)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: "1.22"
cache-dependency-path: go.sum
- name: Vet
run: go vet ./cmd/... ./internal/... ./deploy/...
- name: Test
run: go test ./cmd/... ./internal/... ./deploy/...
go-mount:
name: Go (mount)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
# Mount client tests fork a real redis-server per test (see
# mount/internal/client/native_test.go); install the binary so the
# tests can spawn it.
- name: Install redis-server
run: sudo apt-get update && sudo apt-get install -y redis-server
- uses: actions/setup-go@v6
with:
go-version: "1.22"
cache-dependency-path: mount/go.sum
- name: Vet
working-directory: mount
run: go vet ./...
- name: Test
working-directory: mount
run: go test ./...
go-sandbox:
name: Go (sandbox)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: "1.22"
cache-dependency-path: sandbox/go.sum
- name: Vet
working-directory: sandbox
run: go vet ./...
- name: Test
working-directory: sandbox
run: go test ./...
ui:
name: UI
runs-on: ubuntu-latest
defaults:
run:
working-directory: ui
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "24"
cache: npm
cache-dependency-path: ui/package-lock.json
- run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm test
ui-lint:
name: UI lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: ui
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "24"
cache: npm
cache-dependency-path: ui/package-lock.json
- run: npm ci
- name: Lint
run: npm run lint