Skip to content

linting fixes

linting fixes #26

Workflow file for this run

# https://github.com/marketplace/actions/go-test-coverage
name: Go test coverage check
permissions:
contents: read
on:
pull_request:
branches:
- main
push:
branches:
- '*' # matches every branch that doesn't contain a '/'
- '*/*' # matches every branch containing a single '/'
- '**' # matches every branch
- '!master' # excludes master
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- name: generate test coverage
run: go test ./... -coverprofile=./cover.out -covermode=atomic -coverpkg=./...
- name: check test coverage
uses: vladopajic/go-test-coverage@v2
with:
# Configure action using config file (option 1)
config: ./.testcoverage.yml
# Configure action by specifying input parameters individually (option 2).
# If you are using config file you shouldn't use these parameters.
profile: cover.out
local-prefix: github.com/Pacobart/terraform-cloud-workspace-collector
#threshold-file: 80 # The minimum coverage that each file should have
#threshold-package: 80 # The minimum coverage that each package should have
#threshold-total: 95 # The minimum total coverage project should have