From 4b62e4b869f60ea411db3c9922b1e5d22046d536 Mon Sep 17 00:00:00 2001 From: Daniel Orner Date: Thu, 18 Jan 2024 13:31:18 -0500 Subject: [PATCH] Add tests --- .github/workflows/CI.yml | 15 +++++++++++++++ avro/type.go | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index bed42ec..b54443a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -8,6 +8,21 @@ on: workflow_dispatch: jobs: + test: + runs-on: [ubuntu-latest] + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup Go + uses: actions/setup-go@v2 + with: + go-version: '1.21' + - run: git reset --hard + - run: git clean -f -d + - run: go test ./... + build_and_deploy: runs-on: [ubuntu-latest] steps: diff --git a/avro/type.go b/avro/type.go index af3a921..3e86619 100644 --- a/avro/type.go +++ b/avro/type.go @@ -16,7 +16,7 @@ type NamedType interface { } func LogMsg(msg string, args ...any) { - fmt.Fprintf(os.Stderr, fmt.Sprintf(msg, args)) + fmt.Fprintf(os.Stderr, fmt.Sprintf(msg, args...)) fmt.Fprintln(os.Stderr) }