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
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@ jobs:
- name: Lint
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8
with:
version: v2.3.1
version: v2.4.0

- name: Test
run: go test -v ./...
run: make test

- name: Fuzz Test
run: go test -fuzz=FuzzCalculateFileChunks -fuzztime=10s ./util

- name: Build
run: go build .
run: make build

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3
Expand Down Expand Up @@ -117,6 +117,7 @@ jobs:
- name: Build
env:
CGO_ENABLED: '0'
GOEXPERIMENT: 'jsonv2'
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
run: go build .
Expand Down
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
lint:
golangci-lint run

test:
GOEXPERIMENT=jsonv2 go test ./...

build:
GOEXPERIMENT=jsonv2 go build .

.PHONY: lint test build
2 changes: 1 addition & 1 deletion fhir/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ func TestPollAsyncStatus(t *testing.T) {

_, err := pollAsyncStatus(server)

assert.Equal(t, "error while reading the outcome of an error response in the async response bundle: json: cannot unmarshal array into Go value of type fhir.OperationOutcome", err.Error())
assert.Equal(t, "error while reading the outcome of an error response in the async response bundle: json: cannot unmarshal JSON array into Go type fhir.OperationOutcome", err.Error())
})

t.Run("async response with error bundle entry with outcome", func(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/samply/blazectl

go 1.24
go 1.25

toolchain go1.24.6
toolchain go1.25.0

require (
github.com/goccy/go-yaml v1.18.0
Expand Down