Merge pull request #436 from stephenafamo/uniques #1063
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ 'stable' ] | |
# Disable oldstable until 1.25 is released | |
# tests with `sql.Null[T]` break when T is primitive, but not one of the driver.Value types | |
# go: [ 'oldstable', 'stable' ] | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Install Dependencies | |
run: go mod download | |
- name: Run tests | |
run: go test -timeout 20m -race -covermode atomic -coverprofile=covprofile.out -coverpkg=github.com/stephenafamo/bob/... ./... | |
- name: Send coverage | |
uses: shogo82148/actions-goveralls@v1 | |
with: | |
path-to-profile: covprofile.out | |
flag-name: go-${{ matrix.go }} | |
parallel: true | |
finish: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: shogo82148/actions-goveralls@v1 | |
with: | |
parallel-finished: true | |
test-windows-sqlite: | |
# Run generation test on windows to catch filepath issues | |
# Testing Postgres, MySQL, and LibSQL are not possible since the windows runner | |
# does not support containers | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
go: ['stable'] | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Install Dependencies | |
run: go mod download | |
- name: Run tests | |
run: go test -race -run '^(TestAssembleSQLite)$' ./gen/bobgen-sqlite/driver |