From 5511bdd1a60d5a623fa8eb2c14d15359071c0685 Mon Sep 17 00:00:00 2001 From: takanuva15 <6986426+takanuva15@users.noreply.github.com> Date: Thu, 25 Jun 2026 17:13:03 -0400 Subject: [PATCH] Add build and test ci job --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ driver/valuer_test.go | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..cb8f47e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: Build and Test + +on: + push: + branches: + - master + pull_request: + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Set up Go + uses: actions/setup-go@v6 + with: + go-version-file: go.mod + cache: true + + - name: Build + run: go build ./... + + - name: Test + run: go test ./... diff --git a/driver/valuer_test.go b/driver/valuer_test.go index 7770f67..b59d4fe 100644 --- a/driver/valuer_test.go +++ b/driver/valuer_test.go @@ -36,7 +36,7 @@ func TestBigQueryConnectionCheckNamedValueUnwrapsNestedValuer(t *testing.T) { Value: staticValuer{value: staticValuer{value: "hello"}}, } - err := bigQueryConnection{}.CheckNamedValue(namedValue) + err := (&bigQueryConnection{}).CheckNamedValue(namedValue) require.NoError(t, err) require.Equal(t, "hello", namedValue.Value)