Skip to content

Commit a2bc896

Browse files
committed
Try adding support for testing downstream subdir packages
1 parent 01647da commit a2bc896

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/IntegrationTest.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,20 @@ jobs:
5454
end
5555
end
5656
try
57-
Pkg.develop(PackageSpec(path="downstream"))
57+
repo_and_subdir = split("${{ inputs.repo }}", ':')
58+
repo = first(repo_and_subdir)
59+
pkg_name = string(first(split(last(split(repo, '/')), '.')))
60+
path = "downstream"
61+
if length(repo_and_subdir) > 1
62+
length(repo_and_subdir) == 2 || error("Bad repo input.")
63+
subdir = last(repo_and_subdir)
64+
path = joinpath(path, subdir)
65+
pkg_name = last(split(repo, '/'))
66+
end
67+
Pkg.develop(PackageSpec(path))
5868
# force it to use this PR's version of the package
5969
Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
6070
Pkg.update()
61-
pkg_name = string(first(split(last(split("${{ inputs.repo }}", '/')), '.')))
6271
Pkg.test(pkg_name) # resolver may fail with test time deps
6372
catch err
6473
err isa Pkg.Resolve.ResolverError || rethrow()

0 commit comments

Comments
 (0)