-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.kres.yaml
74 lines (74 loc) · 1.55 KB
/
.kres.yaml
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
---
kind: golang.Build
spec:
outputs:
linux-amd64:
GOOS: linux
GOARCH: amd64
linux-arm64:
GOOS: linux
GOARCH: arm64
---
kind: common.Image
name: image-talos-backup
spec:
extraEnvironment:
PLATFORM: linux/amd64,linux/arm64
---
kind: auto.CustomSteps
spec:
steps:
- name: integration.test
toplevel: true
- name: integration
toplevel: true
inputs:
- base
---
kind: service.CodeCov
spec:
enabled: false
---
kind: custom.Step
name: integration.test
spec:
docker:
enabled: true
stages:
- name: integration-build
description: builds the integration test binary
from: base
steps:
- script:
command: go test -c -tags integration ./internal/integration
cache:
- /root/.cache/go-build
- /go/pkg
- name: integration.test
description: copies out the integration test binary
steps:
- copy:
from: integration-build
src: /src/integration.test
dst: /integration.test
makefile:
enabled: true
phony: true
script:
- "@$(MAKE) local-$@ DEST=$(ARTIFACTS)"
---
kind: custom.Step
name: integration
spec:
makefile:
enabled: true
phony: true
depends:
- integration.test
variables:
- name: RUN_TESTS
defaultValue: TestIntegration
script:
- cd internal/integration && PATH="$$PWD/../../$(ARTIFACTS):$$PATH" integration.test -test.v -test.run $(RUN_TESTS)
ghaction:
enabled: true