Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable test coverage #5

Merged
merged 20 commits into from
May 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 31 additions & 17 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,51 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest]
# os: [ubuntu-latest, macos-latest]
steps:

- name: Set up Go 1.14
uses: actions/setup-go@v1
uses: actions/setup-go@v2
with:
go-version: 1.14
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
path: ./src/github.com/${{ github.repository }}

- name: go get tools
run: |
go get golang.org/x/lint/golint
go get github.com/mattn/goveralls
go get github.com/go-playground/overalls

- name: Get dependencies
- name: go get deps
run: |
go get -v -t -d ./...
go get -v -t -d github.com/${{ github.repository }}/...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi

- name: Lint
run: |
export PATH=${PATH}:`go env GOPATH`/bin
go get -u golang.org/x/lint/golint
golint -set_exit_status ./...
- name: go build
run: go build -v github.com/${{ github.repository }}/...

- name: go test
run: go test github.com/${{ github.repository }}/...

- name: Build
run: go build -v ./...
- name: coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
$(go env GOPATH)/bin/overalls -project=github.com/${{ github.repository }}
$(go env GOPATH)/bin/goveralls -coverprofile=$(go env GOPATH)/src/github.com/${{ github.repository }}/overalls.coverprofile -service=github

- name: Test
run: go test ./...
- name: go vet
run: go vet github.com/${{ github.repository }}/...

- name: Vet
run: go vet ./...
- name: golint
run: |
$(go env GOPATH)/bin/golint -set_exit_status github.com/${{ github.repository }}/...
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

PrivX is a lean and modern privileged access management solution to automate your AWS, Azure and GCP infrastructure access management in one multi-cloud solution. This Software Development Kit (SDK) offers a high-level abstraction to programmatically configure your PrivX instances.

[![Documentation](https://godoc.org/github.com/SSHcom/privx-sdk-go?status.svg)](http://godoc.org/github.com/SSHcom/privx-sdk-go)
[![Build Status](https://img.shields.io/github/workflow/status/SSHcom/privx-sdk-go/Go)](https://github.com/SSHcom/privx-sdk-go/actions)
[![Git Hub](https://img.shields.io/github/last-commit/SSHcom/privx-sdk-go.svg)](https://github.com/SSHcom/privx-sdk-go/actions)
[![Coverage Status](https://coveralls.io/repos/github/SSHcom/privx-sdk-go/badge.svg?branch=master)](https://coveralls.io/github/SSHcom/privx-sdk-go?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/SSHcom/privx-sdk-go)](https://goreportcard.com/report/github.com/SSHcom/privx-sdk-go)


## Getting Started

The latest version of SDK is available at `master` branch of the repository. All development, including new features and bug fixes, take place on the `master` branch using forking and pull requests as described in contribution guidelines.
Expand Down