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], +)