-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (43 loc) · 1.1 KB
/
Copy pathci.yml
File metadata and controls
56 lines (43 loc) · 1.1 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
name: CI
on:
push:
branches:
- main
- master
pull_request:
permissions:
contents: read
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.25'
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm
cache-dependency-path: web/wiki/package-lock.json
- name: Run go vet
run: make vet
- name: Run go test
run: CGO_ENABLED=1 go test -tags "fts5" ./... -count=1
- name: Build release binaries
run: make build
- name: Build Wiki UI
run: make wiki-build
- name: Capture go build JSON
run: make build-json
- name: Check npm wrapper syntax
run: |
node --check npm/install.js
node --check npm/bin/ccg.js
node --check npm/bin/ccg-server.js
- name: Upload go build JSON artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: go-build-json
path: build-results.json