-
Notifications
You must be signed in to change notification settings - Fork 16
91 lines (71 loc) · 1.79 KB
/
test.yml
File metadata and controls
91 lines (71 loc) · 1.79 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
on:
pull_request:
paths-ignore:
- '**.md'
- 'docs/**'
- 'LICENSE'
- '.gitignore'
- 'CHANGELOG.md'
name: Test
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version: '1.26.x'
cache: true
cache-dependency-path: go.sum
- uses: golangci/golangci-lint-action@v9
with:
version: v2.11.4
- name: Unit Tests
run: make test
- name: Build
run: make build
- name: Build E2E Docker Images
run: make test-e2e-build
- name: Start E2E Environment
run: make test-e2e-run
- name: Run E2E Tests
run: make test-e2e-test
- name: Show E2E Logs on Failure
if: failure()
run: cd docker && docker compose -f docker-compose.e2e.yml logs
- name: Stop E2E Environment
if: always()
run: make test-e2e-clean
darwin:
runs-on: macos-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version: '1.26.x'
cache: true
cache-dependency-path: go.sum
- uses: golangci/golangci-lint-action@v9
with:
version: v2.11.4
- name: Unit Tests
run: make test
- name: Build
run: make build
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version: '1.26.x'
cache: true
cache-dependency-path: go.sum
- name: Install Requirements
run: choco install make
- name: Testing
run: |
set GO111MODULE=on
make test-windows
- name: Build
run: make build-windows