-
Notifications
You must be signed in to change notification settings - Fork 4
75 lines (71 loc) · 2.24 KB
/
e2e-tests.yml
File metadata and controls
75 lines (71 loc) · 2.24 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
name: e2e-tests
on:
push:
branches:
- main
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
paths-ignore:
- "**/README.md"
pull_request:
paths-ignore:
- "**/README.md"
merge_group:
permissions:
contents: read
env:
# Make sure to exit early if cache segment download times out after 2 minutes.
# We limit cache download as a whole to 5 minutes.
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
jobs:
collector-build:
runs-on: ubuntu-24.04
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- name: Checkout
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- run: ./.github/workflows/scripts/free-disk-space.sh
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
id: go-setup
with:
go-version: oldstable
cache-dependency-path: "**/*.sum"
- name: Install dependencies
if: steps.go-setup.outputs.cache-hit != 'true'
run: make -j2 gomoddownload
- name: Generate nrdotcol files
run: make gennrdotcol
- name: Build Collector
run: make nrdotcol
- name: Upload Collector Binary
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
with:
name: collector-binary
path: ./bin/*
docker-build:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- run: ./.github/workflows/scripts/free-disk-space.sh
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
id: go-setup
with:
go-version: oldstable
cache-dependency-path: "**/*.sum"
- name: Install dependencies
if: steps.go-setup.outputs.cache-hit != 'true'
run: make -j2 gomoddownload
- name: Generate nrdotcol files
run: make gennrdotcol
- name: Build Docker Image
run: |
make docker-nrdotcol
- name: export image to tar
run: |
docker save nrdotcol:latest > /tmp/nrdotcol.tar
- name: Upload artifact
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
with:
name: nrdotcol
path: /tmp/nrdotcol.tar