Skip to content

Commit 9128704

Browse files
committed
ci
1 parent 4a82351 commit 9128704

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ jobs:
3131
run: build/ci/install-dependencies.sh
3232
shell: bash
3333

34+
- name: Ensure only tests that are supported in CI are run
35+
run: echo "INTEGRATION_FLAGS='--ci'" >> $GITHUB_ENV
36+
37+
- name: Run integration tests
38+
run: make integration-test INTEGRATION_FLAGS="$INTEGRATION_FLAGS"
39+
3440
- name: Enable perf tests
3541
if: ${{ github.event.inputs.run-all }}
3642
run: echo "E2E_FLAGS='--all'" >> $GITHUB_ENV

scripts/run-integration-tests.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,27 @@
33
THISDIR="$( cd "$(dirname "$0")" ; pwd -P )"
44
TESTDIR="$THISDIR/../test/integration"
55

6+
# Defaults
7+
ARGS=()
8+
9+
# Parse script arguments
10+
for i in "$@"
11+
do
12+
case "$i" in
13+
--offline)
14+
ARGS+=("-p" "offline")
15+
shift # past argument
16+
;;
17+
--all)
18+
ARGS+=("-p" "all")
19+
shift # past argument
20+
;;
21+
*)
22+
die "unknown option '$i'"
23+
;;
24+
esac
25+
done
26+
627
# Exit as soon as any line fails
728
set -e
829

0 commit comments

Comments
 (0)