Skip to content

fix: refactor authorizer v2 #527

fix: refactor authorizer v2

fix: refactor authorizer v2 #527

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: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.21'
- name: Checkout code
uses: actions/checkout@v2
with:
path: src/github.com/SSHcom/privx-sdk-go
- name: Get source dependencies
run: |
go mod download -json
- name: Install CI tools
run: |
go install github.com/mattn/goveralls@latest
go install github.com/lawrencewoodman/roveralls@latest
- name: Install staticcheck
run: |
go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run go vet
run: |
go vet ./...
- name: Run staticcheck
run: |
staticcheck ./...
- name: Run go test
run: |
go test ./...
- name: Run coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
GOPATH=${GITHUB_WORKSPACE} roveralls
GOPATH=${GITHUB_WORKSPACE} goveralls -coverprofile=roveralls.coverprofile -service=github