Skip to content

Commit e236d0c

Browse files
authored
Merge pull request #43 from takanuva15/feature/add-ci
Add build and test ci job
2 parents 113d2fa + 5511bdd commit e236d0c

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v6
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v6
19+
with:
20+
go-version-file: go.mod
21+
cache: true
22+
23+
- name: Build
24+
run: go build ./...
25+
26+
- name: Test
27+
run: go test ./...

‎driver/valuer_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func TestBigQueryConnectionCheckNamedValueUnwrapsNestedValuer(t *testing.T) {
3636
Value: staticValuer{value: staticValuer{value: "hello"}},
3737
}
3838

39-
err := bigQueryConnection{}.CheckNamedValue(namedValue)
39+
err := (&bigQueryConnection{}).CheckNamedValue(namedValue)
4040

4141
require.NoError(t, err)
4242
require.Equal(t, "hello", namedValue.Value)

0 commit comments

Comments
 (0)