Skip to content

Commit

Permalink
Before building and testing the package, make sure that the UUID has …
Browse files Browse the repository at this point in the history
…not been edited (JuliaLang#128)
  • Loading branch information
DilumAluthge authored Jun 4, 2021
1 parent 5d00bdd commit 21843d0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
File renamed without changes.
10 changes: 10 additions & 0 deletions .ci/test_uuid_is_unchanged.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using Pkg
using Test

@testset "Test that the UUID is unchanged" begin
project_filename = joinpath(dirname(@__DIR__), "Project.toml")
project = Pkg.TOML.parsefile(project_filename)
uuid = project["uuid"]
correct_uuid = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
@test uuid == correct_uuid
end
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ jobs:
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-${{ matrix.os }}
${{ runner.os }}-
- run: julia --color=yes .ci/change-uuid.jl
- run: julia --color=yes .ci/test_uuid_is_unchanged.jl
- run: julia --color=yes .ci/change_uuid.jl
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
Expand Down

0 comments on commit 21843d0

Please sign in to comment.