Skip to content

Commit

Permalink
Recommend that most users use the new compathelper-action composite…
Browse files Browse the repository at this point in the history
… action
  • Loading branch information
DilumAluthge committed Aug 28, 2021
1 parent 7d8fdcf commit aa0b656
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 35 deletions.
26 changes: 3 additions & 23 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,6 @@ jobs:
CompatHelper:
runs-on: ubuntu-latest
steps:
- name: "Add the General registry via Git"
run: |
import Pkg
ENV["JULIA_PKG_SERVER"] = ""
Pkg.Registry.add("General")
shell: julia --color=yes {0}
- name: "Install CompatHelper"
run: |
import Pkg
name = "CompatHelper"
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
version = "3"
Pkg.add(; name, uuid, version)
shell: julia --color=yes {0}
- name: "Run CompatHelper"
run: |
import CompatHelper
CompatHelper.main()
shell: julia --color=yes {0}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
# COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}
- uses: JuliaRegistries/compathelper-action@v1
with:
ssh: ${{ secrets.DOCUMENTER_KEY }}
12 changes: 0 additions & 12 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,6 @@ Mocking.activate()

Aqua.test_all(CompatHelper; ambiguities=false)

@testset "`version =` line in the workflow file" begin
root_directory = dirname(dirname(@__FILE__))
project_file = joinpath(root_directory, "Project.toml")
version = Base.VersionNumber(TOML.parsefile(project_file)["version"])
major_version = version.major
@test major_version >= 1
workflow_dir = joinpath(root_directory, ".github", "workflows")
workflow_filename = joinpath(workflow_dir, "CompatHelper.yml")
workflow_filecontents = read(workflow_filename, String)
@test occursin(Regex("\\sversion = \"$(major_version)\"\n"), workflow_filecontents)
@test length(findall(r"version[\s]*?=", workflow_filecontents)) == 1
end
include("patches.jl")

@testset "CompatHelper.jl" begin
Expand Down

0 comments on commit aa0b656

Please sign in to comment.