diff --git a/.github/workflows/ci_unit.yml b/.github/workflows/ci_unit.yml index 734fd2f8..1c1b2e32 100644 --- a/.github/workflows/ci_unit.yml +++ b/.github/workflows/ci_unit.yml @@ -20,25 +20,28 @@ jobs: strategy: fail-fast: false matrix: - arch: - - x64 os: - ubuntu-latest version: + - '1.0' # min + - '1.1' + - '1.2' - '1.3' - '1.4' - '1.5' - - '1.6' + - '1.6' # old LTS - '1.7' - '1.8' - - '1' + - '1.9' + - '1.10' # current LTS + - '1.11' + - '1.12' # current stable - 'nightly' steps: - uses: actions/checkout@v5 - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} - arch: ${{ matrix.arch }} - uses: julia-actions/cache@v2 - uses: julia-actions/julia-buildpkg@v1 with: diff --git a/RegistryCI/Project.toml b/RegistryCI/Project.toml index 44cf00b8..9c0574ba 100644 --- a/RegistryCI/Project.toml +++ b/RegistryCI/Project.toml @@ -22,7 +22,7 @@ RegistryTools = "2.2" SimpleMock = "1" Test = "<0.0.1, 1" TimeZones = "1" -julia = "1.3" +julia = "1" [extras] Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" diff --git a/RegistryCI/src/registry_testing.jl b/RegistryCI/src/registry_testing.jl index 8771d0af..479b7cec 100644 --- a/RegistryCI/src/registry_testing.jl +++ b/RegistryCI/src/registry_testing.jl @@ -16,6 +16,12 @@ end is_valid_url(str::AbstractString) = !isempty(HTTP.URI(str).scheme) && isvalid(HTTP.URI(str)) +@static if Base.VERSION >= v"1.2" # Base.hasproperty() requires Julia 1.2+ + const hasproperty = Base.hasproperty +else + hasproperty(x, s::Symbol) = s in propertynames(x) +end + function _include_this_registry( registry_spec, registry_deps_names::Vector{<:AbstractString} )