Skip to content

Merge pull request #143 from iljaSL/fix-add-missing-grant-validity-slice #485

Merge pull request #143 from iljaSL/fix-add-missing-grant-validity-slice

Merge pull request #143 from iljaSL/fix-add-missing-grant-validity-slice #485

Workflow file for this run

name: Go
on:
pull_request:
types:
- opened
- synchronize
push:
branches:
- master
- /refs/heads/master
defaults:
run:
working-directory: ./src/github.com/SSHcom/privx-sdk-go
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: golang
uses: actions/setup-go@v2
with:
go-version: '1.20'
- name: checkout
uses: actions/checkout@v2
with:
path: src/github.com/SSHcom/privx-sdk-go
- name: Get source dependencies
run: |
go mod download -json
- name: go get CI tools
run: |
go get github.com/mattn/goveralls
go get github.com/lawrencewoodman/roveralls
env:
GO111MODULE: off
- name: go install staticcheck
run: |
go install honnef.co/go/tools/cmd/staticcheck@latest
- name: go vet
run: |
go vet ./...
- name: staticcheck
run: |
staticcheck ./...
- name: go test
run: |
go test ./...
- name: coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
GOPATH=${GITHUB_WORKSPACE} roveralls
GOPATH=${GITHUB_WORKSPACE} goveralls -coverprofile=roveralls.coverprofile -service=github