Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .github/workflows/vendor-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,24 @@ jobs:
- os: macOS-latest
arch: aarch64
version: 1

- os: ubuntu-latest
arch: x86
version: 1

steps:
- name: Checkout code
uses: actions/checkout@v5

- name: Setup Julia
uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}

- name: Cache Julia packages
uses: julia-actions/cache@v2

- name: Run vendor tests
run: |
cd vendor
julia test.jl
julia test.jl
2 changes: 1 addition & 1 deletion vendor/test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ include("jsonx.jl")

@testset "AbstractVector{UInt8} Support" begin
@test JSONX.parse(Vector{UInt8}("null")) === nothing
@test JSONX.parse(Vector{UInt8}("42")) === 42
@test JSONX.parse(Vector{UInt8}("42")) === Int64(42)
@test JSONX.parse(Vector{UInt8}("\"hello\"")) == "hello"
@test JSONX.parse(Vector{UInt8}("[1,2,3]")) == [1, 2, 3]
@test JSONX.parse(Vector{UInt8}("{\"a\":1}")) == Dict("a" => 1)
Expand Down
Loading