Bump google.golang.org/protobuf from 1.27.1 to 1.32.0 #59
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: Test | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
paths: | |
- "**/*.go" | |
- "go.mod" | |
- "go.sum" | |
- ".github/workflows/test.yml" | |
pull_request: | |
types: [opened, synchronize, reopened] | |
branches: | |
- master | |
- develop | |
paths: | |
- "**/*.go" | |
- "go.mod" | |
- "go.sum" | |
- ".github/workflows/test.yml" | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
go-version: [1.16, 1.17] | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:latest | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: bhojpur | |
ports: | |
- 5432/tcp | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout codebase | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Run tests on PostgreSQL | |
env: | |
GOPATH: /home/runner/go | |
ORM_DRIVER: postgres | |
ORM_SOURCE: host=localhost port=${{ job.services.postgres.ports[5432] }} user=postgres password=postgres dbname=bhojpur_test sslmode=disable | |
run: | | |
go test -coverprofile=coverage_postgres.txt -covermode=atomic $(go list ./... | grep client/orm) | |
- name: Upload codecov | |
env: | |
CODECOV_TOKEN: 4f4bc484-32a8-43b7-9f48-20966bd48ceb | |
run: bash <(curl -s https://codecov.io/bash) |