[DEBUG] #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test generated package | |
on: | |
push: | |
branches: | |
- main | |
- 322-* | |
tags: ["*"] | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "src/**" | |
- "test/**" | |
- "*.toml" | |
- "copier.yml" | |
- "template/**" | |
types: [opened, synchronize, reopened] | |
workflow_dispatch: | |
jobs: | |
test-generated-pkg: | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- "1.6" | |
- "1" | |
os: | |
- ubuntu-latest | |
arch: | |
- x64 | |
allow_failure: [false] | |
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.allow_failure }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: julia-actions/setup-julia@v2 | |
with: | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
- name: Use Julia cache | |
uses: julia-actions/cache@v2 | |
- uses: julia-actions/julia-buildpkg@v1 | |
- name: Create a package using the template | |
run: | | |
julia --project=. --eval ' | |
using BestieTemplate, UUIDs; | |
t = Dict( | |
"PackageName" => "Guldasta", | |
"PackageUUID" => string(UUIDs.uuid4()), | |
"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/docs --eval 'using Pkg; pkg"dev tmp/Guldasta.jl"' \ | |
-L tmp/Guldasta.jl/docs/make.jl | |
- name: Check docs generation | |
run: bash -e .github/scripts/verify-docs-build-files.sh |