Skip to content

Commit a4f0844

Browse files
authored
feat: improve arena implementation (#12)
1 parent 7bf14e2 commit a4f0844

21 files changed

Lines changed: 384 additions & 775 deletions

.github/workflows/ci.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,27 @@ on:
66
push:
77
branches:
88
- master
9+
10+
permissions:
11+
contents: read
12+
913
jobs:
1014
test:
1115
name: Build and test (go ${{ matrix.go }} / ${{ matrix.os }})
1216
runs-on: ${{ matrix.os }}
1317
strategy:
1418
matrix:
15-
go: [ '1.21' ]
19+
go: [ '1.25' ]
1620
os: [ubuntu-latest, windows-latest]
1721
steps:
1822
- name: Set git to use LF
1923
run: |
2024
git config --global core.autocrlf false
2125
git config --global core.eol lf
2226
- name: Check out code into the Go module directory
23-
uses: actions/checkout@v3
27+
uses: actions/checkout@v5
2428
- name: Set up Go ${{ matrix.go }}
25-
uses: actions/setup-go@v4
29+
uses: actions/setup-go@v6
2630
with:
2731
go-version: ^${{ matrix.go }}
2832
id: go
@@ -32,20 +36,17 @@ jobs:
3236
run: go test -v ./... -race
3337

3438
lint:
35-
name: Linters
39+
name: lint
3640
runs-on: ubuntu-latest
3741
steps:
38-
- name: Check out code into the Go module directory
39-
uses: actions/checkout@v3
40-
- name: Set up Go 1.21
41-
uses: actions/setup-go@v4
42+
- uses: actions/checkout@v5
43+
- uses: actions/setup-go@v6
4244
with:
43-
go-version: 1.21
44-
- name: Run linters
45-
uses: golangci/golangci-lint-action@v3
45+
go-version: stable
46+
- name: golangci-lint
47+
uses: golangci/golangci-lint-action@v8
4648
with:
47-
version: v1.55.2
48-
args: --timeout=3m
49+
version: v2.5.0
4950
ci:
5051
name: CI Success
5152
if: ${{ always() }}

arena.go

Lines changed: 0 additions & 128 deletions
This file was deleted.

arena_test.go

Lines changed: 0 additions & 77 deletions
This file was deleted.

arena_timing_test.go

Lines changed: 0 additions & 44 deletions
This file was deleted.

go.mod

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
module github.com/wundergraph/astjson
22

3-
go 1.21
3+
go 1.25
44

5-
require github.com/stretchr/testify v1.9.0
5+
require (
6+
github.com/stretchr/testify v1.11.1
7+
github.com/wundergraph/go-arena v0.0.0-20251008210416-55cb97e6f68f
8+
)
69

710
require (
811
github.com/davecgh/go-spew v1.1.1 // indirect

go.sum

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
22
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
33
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
44
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
5-
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
6-
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
5+
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
6+
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
7+
github.com/wundergraph/go-arena v0.0.0-20251008210416-55cb97e6f68f h1:5snewyMaIpajTu4wj22L/DgrGimICqXtUVjkZInBH3Y=
8+
github.com/wundergraph/go-arena v0.0.0-20251008210416-55cb97e6f68f/go.mod h1:ROOysEHWJjLQ8FSfNxZCziagb7Qw2nXY3/vgKRh7eWw=
79
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
810
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
911
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

0 commit comments

Comments
 (0)