Skip to content

Bump github.com/spf13/viper from 1.16.0 to 1.17.0 #44

Bump github.com/spf13/viper from 1.16.0 to 1.17.0

Bump github.com/spf13/viper from 1.16.0 to 1.17.0 #44

Workflow file for this run

name: Go
on:
pull_request:
branches: [ main, develop ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# default fetch-depth is insufficent to find previous coverage notes
fetch-depth: 10
- uses: gwatts/go-coverage-action@v1
id: coverage
with:
# Optional coverage threshold
# use fail-coverage to determine what should happen below this threshold
coverage-threshold: 80
# collect coverage for all packages beyond the one under test
cover-pkg: ./...
# Ignore code-generated files when calculating coverage totals
ignore-pattern: |
\.pb\.go$
\_string\.go$