Pgxmock batch example in Go #327
Workflow file for this run
This file contains 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: Build & Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build-and-test: | |
if: true # false to skip job during debug | |
name: Test and Build on Ubuntu | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21' | |
- name: Get dependencies | |
run: | | |
go mod download | |
go version | |
- name: GolangCI-Lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: latest | |
- name: Test | |
run: go test -v -coverprofile=profile.cov | |
- name: Coveralls | |
uses: shogo82148/actions-goveralls@v1 | |
with: | |
path-to-profile: profile.cov |