-
-
Notifications
You must be signed in to change notification settings - Fork 18
57 lines (48 loc) · 1.12 KB
/
test.yml
File metadata and controls
57 lines (48 loc) · 1.12 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
name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go:
- "1.18"
- "1.19"
- "1.20"
- "1.21"
- "1.22"
- "1.23"
- "1.24"
- "1.25"
- "1.26"
- "stable"
steps:
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go }}
- name: Prepare enterprise license for CI
run: |
cp ee/fixtures/license/private.ci.key ee/pkg/license/private.key
cp ee/fixtures/license/public.ci.key ee/pkg/license/public.key
- name: Build
run: make build
- name: Test
run: |
make test || make test
- name: Test coverage
run: make coverage
if: matrix.go == 'stable'
- name: Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
verbose: true
if: matrix.go == 'stable'