Skip to content

chore: use go install instead of go get #202

chore: use go install instead of go get

chore: use go install instead of go get #202

Workflow file for this run

name: build
on:
push:
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: 1.22.2
- name: Install golangci-lint
uses: golangci/golangci-lint-action@master
with:
version: v1.57.2
args: -v --timeout=5m
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: 1.22.2
- uses: engineerd/setup-kind@v0.5.0
with:
version: "v0.22.0"
- name: Run Unit tests
run: go test -race -covermode atomic -coverprofile=profile.cov ./...
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go install github.com/mattn/goveralls@latest
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github