Skip to content

Commit

Permalink
Merge pull request #61 from awadell1/awadell1/issue21
Browse files Browse the repository at this point in the history
Add support for ci workflow for Projects
  • Loading branch information
awadell1 authored Jul 6, 2022
2 parents 83bb050 + 60df9c2 commit e0012ee
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/ci.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,16 @@ function ci()
project = Base.current_project()
pkg_toml = Base.parsed_toml(project)
pkg = Pkg.PackageSpec(
name=pkg_toml["name"],
uuid=pkg_toml["uuid"],
name=get(pkg_toml, "name", nothing),
uuid=get(pkg_toml, "uuid", nothing),
path=dirname(project),
)

# Check that name and uuid are defined in the project file
@assert !isnothing(pkg.name) && !isnothing(pkg.uuid) "Missing name and uuid in $(project)"
@assert !isnothing(pkg.name) "Missing name for package in $(project)"
@assert !isnothing(pkg.uuid) "Missing uuid for package in $(project)"

# Run in sandbox
pkgname = Symbol(pkg.name)
sandbox(pkg) do
Expand Down

0 comments on commit e0012ee

Please sign in to comment.