-
Notifications
You must be signed in to change notification settings - Fork 9
79 lines (78 loc) · 2 KB
/
ci.yml
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
on: [push]
name: ci
jobs:
go_build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run
uses: ./.github/actions/cached-docker-build
id: cached-docker-build
with:
target: docker_build
- name: List build artifacts
run: ls -lah build/
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: binaries
path: |
build/
go_lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run
uses: ./.github/actions/cached-docker-build
id: cached-docker-build
with:
target: docker_lint
go_test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run
uses: ./.github/actions/cached-docker-build
id: cached-docker-build
with:
target: docker_test
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: testlogs
path: |
internal/pkg/stitch/testdata/*.mkv.log
go_bench:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run
uses: ./.github/actions/cached-docker-build
id: cached-docker-build
with:
target: docker_bench
frontend_build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker buildx
uses: docker/setup-buildx-action@v3
- name: Run
uses: ./.github/actions/cached-docker-build
id: cached-docker-build
with:
chdir: frontend
target: docker_build
- name: List build artifacts
run: ls -lah frontend/dist/
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: web-dist
path: |
frontend/dist/