-
Notifications
You must be signed in to change notification settings - Fork 0
100 lines (81 loc) · 2.75 KB
/
Copy pathci.yml
File metadata and controls
100 lines (81 loc) · 2.75 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
100
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: ${{ vars.RUNS_ON || 'ubuntu-latest' }}
timeout-minutes: 30
env:
GOTOOLCHAIN: auto
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.2
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: 22
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
if: github.event_name == 'pull_request'
run: make verify-fast
- name: Verify no race
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: make verify-norace
- name: Verify race
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: make verify-race
- name: Test system runtime
run: make test-system
- name: Build dashboard systemtest server
run: make build-systemtest-server
- name: Install Chromium
run: make ui-e2e-install PLAYWRIGHT_INSTALL_FLAGS=--with-deps
- name: Test dashboard end to end
run: make test-ui-e2e
- name: Upload Playwright diagnostics
if: failure() && hashFiles('ui/test-results/e2e/**') != ''
uses: actions/upload-artifact@v4
with:
name: playwright-diagnostics
path: ui/test-results/e2e
if-no-files-found: ignore
retention-days: 7