Skip to content

added config replacement patch for viper.Sub(), added cli support for… #53

added config replacement patch for viper.Sub(), added cli support for…

added config replacement patch for viper.Sub(), added cli support for… #53

Workflow file for this run

name: Run unit tests
on:
pull_request:
push:
tags:
- v*
branches:
- master
jobs:
unit_test:
strategy:
matrix:
go_version: ["stable"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go_version }}
- name: Test config package
run: |
DEPS="$(go list -deps ./...|grep 'fredbi/go-cli')"
go test \
-v \
-coverprofile=cover.out \
-covermode=atomic \
-coverpkg="$(echo ${DEPS}|sed -E '1,$s/\s/,/g')" \
./...
- name: Prepare coverage output
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: cover.out