-
Notifications
You must be signed in to change notification settings - Fork 90
97 lines (79 loc) · 2.06 KB
/
unit_tests.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
88
89
90
91
92
93
94
95
96
97
name: vHive unit tests
on:
push:
branches: [ main ]
paths-ignore:
- 'docs/**'
- '**.md'
- 'function-images/**'
pull_request:
branches: [ main ]
paths-ignore:
- 'docs/**'
- '**.md'
- 'function-images/**'
workflow_dispatch:
env:
GOOS: linux
GO111MODULE: on
jobs:
unit-test:
name: Unit test
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
module: [taps, misc, profile]
steps:
- name: Set up Go 1.19
uses: actions/setup-go@v4
with:
go-version: '1.19'
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Setup System
run: ./scripts/setup_system.sh
- name: Install PMU tools
run: ./scripts/install_pmutools.sh
- name: Build
run: go build -race -v -a ./...
- name: Run tests in submodules
env:
MODULE: ${{ matrix.module }}
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
run: |
make -C $MODULE test
make -C $MODULE test-man
firecracker-containerd-interface-test:
name: "Unit tests: Firecracker-containerd interface"
runs-on: [self-hosted, integ]
steps:
- name: Set up Go 1.19
uses: actions/setup-go@v4
with:
go-version: '1.19'
- name: Upgrade git
run: |
sudo add-apt-repository ppa:git-core/ppa -y
sudo apt update
sudo apt install git -y
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
lfs: true
- name: Pull binaries
run: ./scripts/setup_firecracker_containerd.sh
- name: Build
run: go build -race -v -a ./...
- name: Run tests in submodules
run: |
make -C ctriface test
make -C ctriface test-man
- name: Cleaning
if: ${{ always() }}
run: ./scripts/clean_fcctr.sh