From 74887c07e76067734f4b72dc9e37d0a4e9c29e0b Mon Sep 17 00:00:00 2001 From: vindard <17693119+vindard@users.noreply.github.com> Date: Fri, 24 Nov 2023 11:43:03 -0400 Subject: [PATCH] build(core): add integration tests to tiltfile and github action --- .github/workflows/tilt.yml | 6 +----- dev/Tiltfile | 9 +++++++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tilt.yml b/.github/workflows/tilt.yml index 06cdf7744ce..38fde07b756 100644 --- a/.github/workflows/tilt.yml +++ b/.github/workflows/tilt.yml @@ -20,11 +20,7 @@ jobs: ${{ toJSON(github.event.pull_request.labels.*.name) }} EOF for LABEL in dashboard consent core; do - case "$LABEL" in - dashboard|consent) - ARGS+=" --test $LABEL" - ;; - esac + ARGS+=" --test $LABEL" done echo "Prepared args: $ARGS" echo "args=$ARGS" >> "$GITHUB_OUTPUT" diff --git a/dev/Tiltfile b/dev/Tiltfile index af4664fd582..e360aa2e060 100644 --- a/dev/Tiltfile +++ b/dev/Tiltfile @@ -357,3 +357,12 @@ for service in docker_groups["price"]: dc_resource(service, labels = ["price"]) for service in docker_groups["integration"]: dc_resource(service, labels = ["integration"]) + +api_test_target = "//core/api:test-integration" +local_resource( + "api-test", + labels = ["test"], + auto_init = is_ci and "api" in cfg.get("test", []), + cmd = "buck2 test {}".format(api_test_target), + resource_deps = [res for sublist in docker_groups.values() for res in sublist], +)