Skip to content

Commit cb2c45b

Browse files
committed
chore(build,ci): allow users to run integration tests against multiple driverversions.
In CI, enable multiple driverversions to test that we do not break against old driver versions. Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
1 parent e6eab8d commit cb2c45b

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/reusable_build_test_driverkit.yml

+8
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ jobs:
2727

2828
- name: Test
2929
run: make test
30+
31+
- name: Set integration tests DRIVERVERSIONS env
32+
if: inputs.arch == 'amd64'
33+
run: echo "DRIVERVERSIONS=master 6.0.1+driver 2.0.0+driver 17f5df52a7d9ed6bb12d3b1768460def8439936d" >> $GITHUB_ENV
34+
35+
- name: Set integration tests DRIVERVERSIONS env
36+
if: inputs.arch == 'arm64'
37+
run: echo "DRIVERVERSIONS=master 6.0.1+driver 2.0.0+driver" >> $GITHUB_ENV
3038

3139
- name: Integration tests
3240
run: make integration_test

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ ifeq ($(COMMITS_FROM_GIT_TAG),0)
1616
endif
1717
endif
1818

19+
DRIVERVERSIONS ?= master
20+
1921
DOCKER_ORG ?= falcosecurity
2022

2123
ARCH := $(shell uname -m)
@@ -105,7 +107,9 @@ integration_test: $(test_configs)
105107

106108
.PHONY: $(test_configs)
107109
$(test_configs): ${driverkit}
108-
${driverkit} docker -c $@ --builderimage auto:master -l debug --timeout 600
110+
$(foreach d,$(DRIVERVERSIONS),\
111+
${driverkit} docker -c $@ --builderimage auto:master -l debug --timeout 600 --driverversion $d; \
112+
)
109113

110114
.PHONY: ${driverkit_docgen}
111115
${driverkit_docgen}: ${PWD}/docgen

0 commit comments

Comments
 (0)