Skip to content

Commit 21843d0

Browse files
authored
Before building and testing the package, make sure that the UUID has not been edited (#128)
1 parent 5d00bdd commit 21843d0

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed
File renamed without changes.

.ci/test_uuid_is_unchanged.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using Pkg
2+
using Test
3+
4+
@testset "Test that the UUID is unchanged" begin
5+
project_filename = joinpath(dirname(@__DIR__), "Project.toml")
6+
project = Pkg.TOML.parsefile(project_filename)
7+
uuid = project["uuid"]
8+
correct_uuid = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
9+
@test uuid == correct_uuid
10+
end

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ jobs:
4747
${{ runner.os }}-test-${{ env.cache-name }}-
4848
${{ runner.os }}-test-${{ matrix.os }}
4949
${{ runner.os }}-
50-
- run: julia --color=yes .ci/change-uuid.jl
50+
- run: julia --color=yes .ci/test_uuid_is_unchanged.jl
51+
- run: julia --color=yes .ci/change_uuid.jl
5152
- uses: julia-actions/julia-buildpkg@v1
5253
- uses: julia-actions/julia-runtest@v1
5354
- uses: julia-actions/julia-processcoverage@v1

0 commit comments

Comments
 (0)