File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 8585 - name : Validate versions.json against schema
8686 run :
npx -p [email protected] ajv -s schema.json -d versions.json 8787
88+ - run : julia --project test/more_tests.jl versions.json
89+
8890 - name : Upload versions.json as workflow artifact
8991 uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
9092 with :
Original file line number Diff line number Diff line change 1+ import JSON
2+ import Test
3+
4+ using Test: @test
5+
6+ const filename = only (ARGS )
7+
8+ const dict = JSON. parsefile (filename)
9+
10+ # This catches regressions like https://github.com/JuliaLang/VersionsJSONUtil.jl/pull/32#issuecomment-2617551478
11+ for (k_str, _) in pairs (dict)
12+ k_ver = VersionNumber (k_str)
13+ @test k_ver isa VersionNumber
14+ end
You can’t perform that action at this time.
0 commit comments