feat(psql merge): implement MERGE statement support with comprehensive test cases (issue #593) #1351
Workflow file for this run
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: [ '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 |