Skip to content

Commit 2cc8fbc

Browse files
committed
integration tests: add to ci
Update existing test.yml workflow to run integration tests.
1 parent 972e264 commit 2cc8fbc

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/test.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: End-to-end test
1+
name: Integration and end-to-end tests
22

33
on:
44
pull_request:
@@ -10,7 +10,7 @@ on:
1010
default: false
1111

1212
jobs:
13-
e2e-test:
13+
tests:
1414
runs-on: ubuntu-latest
1515

1616
steps:
@@ -27,11 +27,17 @@ jobs:
2727
with:
2828
node-version: 18
2929

30-
- name: Install system dependencies for end-to-end tests
30+
- name: Install system dependencies for tests
3131
run: build/ci/install-dependencies.sh
3232
shell: bash
3333

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

scripts/run-integration-tests.sh

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ case "$i" in
1414
ARGS+=("-p" "offline")
1515
shift # past argument
1616
;;
17+
--ci)
18+
ARGS+=("-p" "ci")
19+
shift # past argument
20+
;;
21+
*)
1722
die "unknown option '$i'"
1823
;;
1924
esac

0 commit comments

Comments
 (0)