-
Notifications
You must be signed in to change notification settings - Fork 524
87 lines (80 loc) · 2.09 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
80
81
82
83
84
85
86
87
name: ci
on:
push:
branches:
- 7.1*
pull_request:
merge_group:
# limit the access of the generated GITHUB_TOKEN
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: .go-version
cache: true
cache-dependency-path: |
go.sum
tools/go.sum
systemtest/go.sum
- run: make check-full
test:
strategy:
matrix:
os: ['macos-latest', 'windows-latest', 'ubuntu-latest']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: .go-version
cache: true
- env:
CGO_ENABLED: "0"
run: go test -v ./...
python-system-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# As long as there are some disk space issues with the CI runners.
- name: Free Disk Space
continue-on-error: true
uses: jlumbroso/free-disk-space@f68fdb76e2ea636224182cfb7377ff9a1708f9b8
with:
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
tool-cache: false
- uses: actions/setup-go@v3
with:
go-version-file: .go-version
cache: true
- run: make update apm-server docker-system-tests
go-system-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: .go-version
cache: true
- run: make apm-server
- run: cd systemtest && go test -v -timeout=20m ./...
system-test:
runs-on: ubuntu-latest
needs:
- python-system-tests
- go-system-tests
steps:
- id: check
uses: elastic/apm-pipeline-library/.github/actions/check-dependent-jobs@current
with:
needs: ${{ toJSON(needs) }}
- run: ${{ steps.check.outputs.isSuccess }}