-
Notifications
You must be signed in to change notification settings - Fork 24
75 lines (70 loc) · 1.87 KB
/
pull_request.yml
File metadata and controls
75 lines (70 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
72
73
74
75
name: pull request checks
on:
pull_request:
branches: ['*']
jobs:
build-test-backend:
name: Build, lint, test backend
runs-on: ubuntu-latest
steps:
- name: install make
run: sudo apt-get install make
- name: set up go 1.x
uses: actions/setup-go@v3
with:
go-version: '1.25'
- name: checkout
uses: actions/checkout@v3
- name: build, lint, test
run: make backend && git diff --exit-code
- name: check clean vendors
run: go mod vendor
- name: Report coverage
uses: codecov/codecov-action@v4
with:
files: ./cover.out
flags: unittests
fail_ci_if_error: false
verbose: true
build-test-frontend:
name: Build, lint, test frontend
runs-on: ubuntu-latest
steps:
- name: install make
run: sudo apt-get install make
- name: set up node.js
uses: actions/setup-node@v3
with:
node-version: 22
- name: checkout
uses: actions/checkout@v3
- name: build and test
run: TYPECHECK=true make frontend && git diff --exit-code
- name: Report coverage
uses: codecov/codecov-action@v4
with:
files: ./web/coverage/cobertura-coverage.xml
flags: uitests
fail_ci_if_error: false
verbose: true
benchmark-server:
name: Server performance benchmarks
runs-on: ubuntu-latest
steps:
- name: install make
run: sudo apt-get install make
- name: set up go 1.x
uses: actions/setup-go@v3
with:
go-version: '1.25'
- name: checkout
uses: actions/checkout@v3
- name: run benchmark comparison
run: make benchmark-server-compare
- name: upload benchmark results
if: always()
uses: actions/upload-artifact@v4
with:
name: benchmark-results
path: pkg/server/benchmark-current.txt
retention-days: 30