Skip to content

Commit

Permalink
build(core): add integration tests to tiltfile and github action
Browse files Browse the repository at this point in the history
  • Loading branch information
vindard committed Nov 24, 2023
1 parent b36e30a commit 74887c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/tilt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 9 additions & 0 deletions dev/Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -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],
)

0 comments on commit 74887c0

Please sign in to comment.