Update CompatHelper defaults and add some customization
This commit is contained in:
parent
abbfdb00ea
commit
506d0d33da
@ -2,6 +2,7 @@
|
|||||||
CompatHelper(;
|
CompatHelper(;
|
||||||
file="$(contractuser(default_file("github", "workflows", "CompatHelper.yml")))",
|
file="$(contractuser(default_file("github", "workflows", "CompatHelper.yml")))",
|
||||||
destination="CompatHelper.yml",
|
destination="CompatHelper.yml",
|
||||||
|
cron="0 0 * * *",
|
||||||
)
|
)
|
||||||
|
|
||||||
Integrates your packages with [CompatHelper](https://github.com/bcbi/CompatHelper.jl) via GitHub Actions.
|
Integrates your packages with [CompatHelper](https://github.com/bcbi/CompatHelper.jl) via GitHub Actions.
|
||||||
@ -10,10 +11,12 @@ Integrates your packages with [CompatHelper](https://github.com/bcbi/CompatHelpe
|
|||||||
- `file::AbstractString`: Template file for the workflow file.
|
- `file::AbstractString`: Template file for the workflow file.
|
||||||
- `destination::AbstractString`: Destination of the workflow file,
|
- `destination::AbstractString`: Destination of the workflow file,
|
||||||
relative to `.github/workflows`.
|
relative to `.github/workflows`.
|
||||||
|
- `cron::AbstractString`: Cron expression for the schedule interval.
|
||||||
"""
|
"""
|
||||||
@with_kw_noshow struct CompatHelper <: BasicPlugin
|
@with_kw_noshow struct CompatHelper <: BasicPlugin
|
||||||
file::String = default_file("github", "workflows", "CompatHelper.yml")
|
file::String = default_file("github", "workflows", "CompatHelper.yml")
|
||||||
destination::String = "CompatHelper.yml"
|
destination::String = "CompatHelper.yml"
|
||||||
|
cron::String = "0 0 * * *"
|
||||||
end
|
end
|
||||||
|
|
||||||
source(p::CompatHelper) = p.file
|
source(p::CompatHelper) = p.file
|
||||||
@ -21,5 +24,6 @@ destination(p::CompatHelper) = joinpath(".github", "workflows", p.destination)
|
|||||||
tags(::CompatHelper) = "<<", ">>"
|
tags(::CompatHelper) = "<<", ">>"
|
||||||
|
|
||||||
view(p::CompatHelper, t::Template, ::AbstractString) = Dict(
|
view(p::CompatHelper, t::Template, ::AbstractString) = Dict(
|
||||||
"VERSION" => format_version(max(v"1.2", t.julia)),
|
"CRON" => p.cron,
|
||||||
|
"VERSION" => format_version(max(v"1.3", t.julia)),
|
||||||
)
|
)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
name: CompatHelper
|
name: CompatHelper
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: 0 * * * *
|
- cron: <<&CRON>>
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
name: CompatHelper
|
name: CompatHelper
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: 0 * * * *
|
- cron: 0 0 * * *
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: julia-actions/setup-julia@latest
|
- uses: julia-actions/setup-julia@latest
|
||||||
with:
|
with:
|
||||||
version: 1.2
|
version: 1.3
|
||||||
- name: Pkg.add("CompatHelper")
|
- name: Pkg.add("CompatHelper")
|
||||||
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
|
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
|
||||||
- name: CompatHelper.main()
|
- name: CompatHelper.main()
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
name: CompatHelper
|
name: CompatHelper
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: 0 * * * *
|
- cron: 0 0 * * *
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: julia-actions/setup-julia@latest
|
- uses: julia-actions/setup-julia@latest
|
||||||
with:
|
with:
|
||||||
version: 1.2
|
version: 1.3
|
||||||
- name: Pkg.add("CompatHelper")
|
- name: Pkg.add("CompatHelper")
|
||||||
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
|
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
|
||||||
- name: CompatHelper.main()
|
- name: CompatHelper.main()
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
name: CompatHelper
|
name: CompatHelper
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: 0 * * * *
|
- cron: 0 0 * * *
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: julia-actions/setup-julia@latest
|
- uses: julia-actions/setup-julia@latest
|
||||||
with:
|
with:
|
||||||
version: 1.2
|
version: 1.3
|
||||||
- name: Pkg.add("CompatHelper")
|
- name: Pkg.add("CompatHelper")
|
||||||
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
|
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
|
||||||
- name: CompatHelper.main()
|
- name: CompatHelper.main()
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
name: CompatHelper
|
name: CompatHelper
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: 0 * * * *
|
- cron: 0 0 * * *
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: julia-actions/setup-julia@latest
|
- uses: julia-actions/setup-julia@latest
|
||||||
with:
|
with:
|
||||||
version: 1.2
|
version: 1.3
|
||||||
- name: Pkg.add("CompatHelper")
|
- name: Pkg.add("CompatHelper")
|
||||||
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
|
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
|
||||||
- name: CompatHelper.main()
|
- name: CompatHelper.main()
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
name: CompatHelper
|
name: CompatHelper
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: 0 * * * *
|
- cron: 0 0 */3 * *
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: julia-actions/setup-julia@latest
|
- uses: julia-actions/setup-julia@latest
|
||||||
with:
|
with:
|
||||||
version: 1.2
|
version: 1.3
|
||||||
- name: Pkg.add("CompatHelper")
|
- name: Pkg.add("CompatHelper")
|
||||||
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
|
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
|
||||||
- name: CompatHelper.main()
|
- name: CompatHelper.main()
|
||||||
|
@ -63,6 +63,7 @@ end
|
|||||||
CirrusCI(; image="freebsd-123", coverage=false, extra_versions=["1.1"]),
|
CirrusCI(; image="freebsd-123", coverage=false, extra_versions=["1.1"]),
|
||||||
Citation(; readme=true),
|
Citation(; readme=true),
|
||||||
Codecov(; file=STATIC_FILE),
|
Codecov(; file=STATIC_FILE),
|
||||||
|
CompatHelper(; cron="0 0 */3 * *"),
|
||||||
Coveralls(; file=STATIC_FILE),
|
Coveralls(; file=STATIC_FILE),
|
||||||
Documenter{GitLabCI}(
|
Documenter{GitLabCI}(
|
||||||
assets=[STATIC_FILE],
|
assets=[STATIC_FILE],
|
||||||
|
@ -24,6 +24,7 @@ const LICENSES_DIR = joinpath(TEMPLATES_DIR, "licenses")
|
|||||||
CompatHelper:
|
CompatHelper:
|
||||||
file: "$(joinpath(TEMPLATES_DIR, "github", "workflows", "CompatHelper.yml"))"
|
file: "$(joinpath(TEMPLATES_DIR, "github", "workflows", "CompatHelper.yml"))"
|
||||||
destination: "CompatHelper.yml"
|
destination: "CompatHelper.yml"
|
||||||
|
cron: "0 0 * * *"
|
||||||
Git:
|
Git:
|
||||||
ignore: String[]
|
ignore: String[]
|
||||||
ssh: false
|
ssh: false
|
||||||
|
Loading…
Reference in New Issue
Block a user