From 516b752625240457327294e4b3ccb16413d5b465 Mon Sep 17 00:00:00 2001 From: Abel Soares Siqueira Date: Thu, 4 Jul 2024 11:58:27 +0200 Subject: [PATCH] Revert "Workflow to test generated minimal package (#319)" This reverts commit 1aa2c1ac68ae846a15e63f988027786384f57b96. --- .github/workflows/TestGeneratedPkg.yml | 82 -------------------------- 1 file changed, 82 deletions(-) delete mode 100644 .github/workflows/TestGeneratedPkg.yml diff --git a/.github/workflows/TestGeneratedPkg.yml b/.github/workflows/TestGeneratedPkg.yml deleted file mode 100644 index dfca06b9..00000000 --- a/.github/workflows/TestGeneratedPkg.yml +++ /dev/null @@ -1,82 +0,0 @@ -name: Test generated package - -on: - push: - branches: - - main - 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" => "Bagicha", - "AuthorName" => "Mali", - "AuthorEmail" => "mali@bagicha.site" - ); - BestieTemplate.generate("tmp/Guldasta.jl", t; defaults = true, quiet = true); - ' - - 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")' \ - -L tmp/Guldasta.jl/docs/make.jl - - name: Check docs generation - run: | - while IFS= read -r -d '' f; do - f=${f/src/build}; - # Converts path/file.md to path/file/index.html (index.md just changes to index.html) - case $f in - *index.md) f=${f/%.md/.html};; - *) f=${f/%.md//index.html};; - esac - [[ -e $f ]] || { echo $f missing; } - done < <(find tmp/Guldasta.jl/docs/ -type f -name '*.md' -print0 ) | grep missing - [[ $? -ne 0 ]]