diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index be891601..2dc6c599 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -5,28 +5,39 @@ on: workflow_dispatch: jobs: - test: + go_test: name: Test runs-on: ${{ matrix.os }} defaults: run: shell: bash - strategy: matrix: os: [ubuntu-latest, macos-latest] go: ["1.23"] fail-fast: false - steps: - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go }} + - name: "Run tests" + run: make test + test_examples: + name: Test examples + runs-on: ubuntu-latest + defaults: + run: + shell: bash + steps: + - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} + - name: "Test examples" + run: make examples - - name: "Run Tests" - run: make test freebsd_amd64: runs-on: ubuntu-latest steps: @@ -39,5 +50,4 @@ jobs: gmake \ git \ go - run: gmake test diff --git a/examples/scalar_udf/main.go b/examples/scalar_udf/main.go index 0afe79e7..1bed3502 100644 --- a/examples/scalar_udf/main.go +++ b/examples/scalar_udf/main.go @@ -92,7 +92,7 @@ func myLengthScalarUDFSet() { check(db.Close()) } -// appendSum takes a VARCHAR prefix, a VARCHAR suffix, and a variadic number of integer values. +// wrapSum takes a VARCHAR prefix, a VARCHAR suffix, and a variadic number of integer values. // It computes the sum of the integer values. Then, it emits a VARCHAR by concatenating prefix || sum || suffix. type wrapSum struct{}