Skip to content

Commit

Permalink
Add git commands to TestGeneratedPkg workflow and fix deving the pkg
Browse files Browse the repository at this point in the history
Documenter looks for the package in the registry unless it is
pkg> dev'ed.
makedocs makes use of git information, so we create a git repo with
a commit and a remote.
Also changes the PackageOwner to someone that does not exist.

Closes #322
  • Loading branch information
abelsiqueira committed Jul 4, 2024
1 parent 1aa2c1a commit 6e15973
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/TestGeneratedPkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,27 @@ jobs:
t = Dict(
"PackageName" => "Guldasta",
"PackageUUID" => string(UUIDs.uuid4()),
"PackageOwner" => "Bagicha",
"PackageOwner" => "BestieTemplate",
"AuthorName" => "Mali",
"AuthorEmail" => "[email protected]"
);
BestieTemplate.generate("tmp/Guldasta.jl", t; defaults = true, quiet = true);
'
- name: Run git commands
run: |
cd tmp/Guldasta.jl
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
git init
git add .
git commit -m "First commit"
git remote add origin https://github.com/BestieTemplate/Guldasta.jl
- name: Test generated package
run: |
julia --project=tmp/Guldasta.jl --eval 'using Pkg; Pkg.test()'
- name: Generate docs
run: |
julia --project=tmp/Guldasta.jl --eval 'using Pkg; Pkg.add("Documenter")' \
julia --project=tmp/Guldasta.jl/docs --eval 'using Pkg; pkg"dev tmp/Guldasta.jl"' \
-L tmp/Guldasta.jl/docs/make.jl
- name: Check docs generation
run: |
Expand Down

0 comments on commit 6e15973

Please sign in to comment.